linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmu notifier srcu
@ 2012-08-23 18:01 Andrea Arcangeli
  2012-08-23 18:01 ` [PATCH] mm: mmu_notifier: have mmu_notifiers use a global SRCU so they may safely schedule Andrea Arcangeli
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Arcangeli @ 2012-08-23 18:01 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-mm, Xiao Guangrong, Sagi Grimberg, Peter Zijlstra,
	Haggai Eran

Hi Andrew,

Now that the i_mmap_mutex and anon_vma.lock are mutexes, it's easier
to allow all mmu notifier methods to schedule. This is the first patch
that is required to allow that. Others will follow shortly.

This has been updated compared to previous versions, according to
Peter's suggestion to make the srcu global to save per-cpu memory
(originally there was a srcu object in every mmu notifier
structure). This slightly increases contention in the
mmu_notifier_unregister or exit_mmap paths. But that's by far not a
concern for KVM and hopefully for all other mmu notifier users.

Sagi Grimberg (1):
  mm: mmu_notifier: have mmu_notifiers use a global SRCU so they may
    safely schedule

 include/linux/mmu_notifier.h |    1 +
 mm/mmu_notifier.c            |   73 +++++++++++++++++++++++++++--------------
 2 files changed, 49 insertions(+), 25 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-23 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 18:01 [PATCH] mmu notifier srcu Andrea Arcangeli
2012-08-23 18:01 ` [PATCH] mm: mmu_notifier: have mmu_notifiers use a global SRCU so they may safely schedule Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).