summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/futex.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/futex.h b/include/linux/futex.h
index 168ffd5996b4..005b040c4791 100644
--- a/include/linux/futex.h
+++ b/include/linux/futex.h
@@ -88,14 +88,7 @@ void futex_hash_free(struct mm_struct *mm);
static inline void futex_mm_init(struct mm_struct *mm)
{
- /*
- * No need for rcu_assign_pointer() here, as we can rely on
- * tasklist_lock write-ordering in copy_process(), before
- * the task's MM becomes visible and the ->futex_phash
- * becomes externally observable:
- */
- mm->futex_phash = NULL;
-
+ RCU_INIT_POINTER(mm->futex_phash, NULL);
mutex_init(&mm->futex_hash_lock);
}