Skip to content

Commit

Permalink
mm: mmu_notifier: make the mmu_notifier srcu static
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aagit authored and torvalds committed Oct 9, 2012
1 parent 1e8537b commit 7040030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/mmu_notifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/slab.h>

/* global SRCU for all MMs */
struct srcu_struct srcu;
static struct srcu_struct srcu;

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

/*
* RCU here will block mmu_notifier_unregister until
* SRCU here will block mmu_notifier_unregister until
* ->release returns.
*/
id = srcu_read_lock(&srcu);
Expand Down Expand Up @@ -302,7 +302,7 @@ void mmu_notifier_unregister(struct mmu_notifier *mn, struct mm_struct *mm)

if (!hlist_unhashed(&mn->hlist)) {
/*
* RCU here will force exit_mmap to wait ->release to finish
* SRCU here will force exit_mmap to wait ->release to finish
* before freeing the pages.
*/
int id;
Expand Down

0 comments on commit 7040030

Please sign in to comment.