srcu mmu_notifier cleanup
Subsystems (2)
PATCH 1/1 srcu mmu_notifier cleanup
Hi Andrew,
while re-reading the code, I found an easy to overlook but badly needed cleanup in the mmu notifier srcu patch.
We can't allow such a generic name to be non static (even if it works fine at this time). Plus here "static" is so much better regardless of the name.
This is incremental but feel free to fold this on onto the prev srcu patch.
Thanks,
Andrea
Andrea Arcangeli (1):
mm: mmu_notifier: make the mmu_notifier srcu static
mm/mmu_notifier.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
PATCH 1/1 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.
--- mm/mmu_notifier.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
mm/mmu_notifier.c +3 -3
@@ -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
@@ -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);
@@ -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;
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>