diff options
Diffstat (limited to 'mm/mmu_notifier.c')
-rw-r--r-- | mm/mmu_notifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 947df83dccb0..c297142f0fe6 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/slab.h> | 20 | #include <linux/slab.h> |
21 | 21 | ||
22 | /* global SRCU for all MMs */ | 22 | /* global SRCU for all MMs */ |
23 | struct srcu_struct srcu; | 23 | static struct srcu_struct srcu; |
24 | 24 | ||
25 | /* | 25 | /* |
26 | * This function can't run concurrently against mmu_notifier_register | 26 | * This function can't run concurrently against mmu_notifier_register |
@@ -41,7 +41,7 @@ void __mmu_notifier_release(struct mm_struct *mm) | |||
41 | int id; | 41 | int id; |
42 | 42 | ||
43 | /* | 43 | /* |
44 | * RCU here will block mmu_notifier_unregister until | 44 | * SRCU here will block mmu_notifier_unregister until |
45 | * ->release returns. | 45 | * ->release returns. |
46 | */ | 46 | */ |
47 | id = srcu_read_lock(&srcu); | 47 | id = srcu_read_lock(&srcu); |
@@ -302,7 +302,7 @@ void mmu_notifier_unregister(struct mmu_notifier *mn, struct mm_struct *mm) | |||
302 | 302 | ||
303 | if (!hlist_unhashed(&mn->hlist)) { | 303 | if (!hlist_unhashed(&mn->hlist)) { |
304 | /* | 304 | /* |
305 | * RCU here will force exit_mmap to wait ->release to finish | 305 | * SRCU here will force exit_mmap to wait ->release to finish |
306 | * before freeing the pages. | 306 | * before freeing the pages. |
307 | */ | 307 | */ |
308 | int id; | 308 | int id; |