Skip to content

Commit 7040030

Browse files
aagittorvalds
authored andcommitted
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 <[email protected]> Cc: Xiao Guangrong <[email protected]> Cc: Sagi Grimberg <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Haggai Eran <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1e8537b commit 7040030

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/mmu_notifier.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <linux/slab.h>
2121

2222
/* global SRCU for all MMs */
23-
struct srcu_struct srcu;
23+
static struct srcu_struct srcu;
2424

2525
/*
2626
* This function can't run concurrently against mmu_notifier_register
@@ -41,7 +41,7 @@ void __mmu_notifier_release(struct mm_struct *mm)
4141
int id;
4242

4343
/*
44-
* RCU here will block mmu_notifier_unregister until
44+
* SRCU here will block mmu_notifier_unregister until
4545
* ->release returns.
4646
*/
4747
id = srcu_read_lock(&srcu);
@@ -302,7 +302,7 @@ void mmu_notifier_unregister(struct mmu_notifier *mn, struct mm_struct *mm)
302302

303303
if (!hlist_unhashed(&mn->hlist)) {
304304
/*
305-
* RCU here will force exit_mmap to wait ->release to finish
305+
* SRCU here will force exit_mmap to wait ->release to finish
306306
* before freeing the pages.
307307
*/
308308
int id;

0 commit comments

Comments
 (0)