Re: [PATCH] mm/mmu_notifier: Remove non_block_start/end() from notifier invocation

From: Paul E. McKenney

Date: Tue Aug 18 2026 - 14:22:55 EST


On Thu, Aug 13, 2026 at 08:54:44AM +0100, David Woodhouse wrote:
> On Wed, 2026-08-12 at 14:38 -0700, Paul E. McKenney wrote:
> > If not, please let me know, and I will put together that does the
> > job.
>
> If you're working on that, I assume it'd need the readers to be known-
> atomic. So if any of the read-side SRCU_READ_FLAVOR_ATOMIC thing I
> already threw together is useful, you can find it in my tree at
> https://git.infradead.org/?p=users/dwmw2/linux.git;a=shortlog;h=refs/heads/srcu-atomic

Thank you, happy to steal pieces of that with attribution. ;-)

My current plan says that if you have an atomic SRCU on which you
use srcu_read_lock_atomic() and srcu_read_unlock_atomic(), you only
ever get to use synchronize_srcu_atomic(), never synchronize_srcu(),
synchronize_srcu_expedited(), or call_srcu(). Does that work for you?

> Slightly orthogonally, what do you think of making
> synchronize_srcu{_expedited,}() attempt try_synchronize_srcu() first
> for an early return?

No objections, but one thing at a time.

Thanx, Paul