Commit 70400303ce0c4ced3139499c676d5c79636b0c72
Committed by
Linus Torvalds
1 parent
1e8537baac
Exists in
master
and in
20 other branches
mm: mmu_notifier: make the mmu_notifier srcu static
The variable must be static especially given the variable name. s/RCU/SRCU/ over a few comments. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Cc: Sagi Grimberg <sagig@mellanox.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Haggai Eran <haggaie@mellanox.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
mm/mmu_notifier.c
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | #include <linux/slab.h> |
21 | 21 | |
22 | 22 | /* global SRCU for all MMs */ |
23 | -struct srcu_struct srcu; | |
23 | +static struct srcu_struct srcu; | |
24 | 24 | |
25 | 25 | /* |
26 | 26 | * This function can't run concurrently against mmu_notifier_register |
... | ... | @@ -41,7 +41,7 @@ |
41 | 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 | 45 | * ->release returns. |
46 | 46 | */ |
47 | 47 | id = srcu_read_lock(&srcu); |
... | ... | @@ -302,7 +302,7 @@ |
302 | 302 | |
303 | 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 | 306 | * before freeing the pages. |
307 | 307 | */ |
308 | 308 | int id; |