]> www.infradead.org Git - users/willy/linux.git/commit
mm/mmu_notifier.c: remove mmu_notifier_synchronize()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 5 Dec 2018 00:13:31 +0000 (11:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2018 00:13:31 +0000 (11:13 +1100)
commit9f35ff5183e6203089517724da66531a16623851
tree09b2804239f0a66daa8153eca2fd34375d3c8031
parent92f5fa4c0625b83a8ce4598909502a3248ee5381
mm/mmu_notifier.c: remove mmu_notifier_synchronize()

Contrary to its name, mmu_notifier_synchronize() does not synchronize the
notifier's SRCU instance, but rather waits for RCU callbacks to finished,
i.e.  it invokes rcu_barrier().  The RCU documentation is quite clear on
this matter, explicitly calling out that rcu_barrier() does not imply
synchronize_rcu().

As there are no callers of mmu_notifier_synchronize() and it's unclear
whether any user of mmu_notifier_call_srcu() will ever want to barrier on
their callbacks, simply remove the function.

Link: http://lkml.kernel.org/r/20181106134705.14197-1-sean.j.christopherson@intel.com
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/mmu_notifier.h
mm/mmu_notifier.c