Message ID | 21bdc866-f9ae-4cda-a996-370bde183fd0@paulmck-laptop (mailing list archive) |
---|---|
State | Accepted |
Commit | b73056e9f82ebdf9f5dbcd378e5e51ae95d5000c |
Headers | show |
Series | [GIT,PULL] RCU regression fix for v6.4 | expand |
On Fri, 16 Jun 2023 at 09:34, Paul E. McKenney <paulmck@kernel.org> wrote: > > Yes, it would be nice to abstract this somehow in order to hide it in > SRCU, but I still don't see a good way of doing this. Ehh - like we actually do spinlocks in general, perhaps? Spinlocks always exist. On UP - with no spinlock debugging - it turns into a zero-sized data structure, and the spin lock/unlock operations are no-ops. Why don't you just do the exact same thing with the "struct srcu_usage". For Tiny SRCU, just make it an empty struct, with an empty initializer. IOW, don't "abstract it out". Abstract it IN. Make tiny-rcu still have it, just as a no-op. Anyway, I've pulled your fix, but maybe the above would have been the cleaner solution? Linus
The pull request you sent on Fri, 16 Jun 2023 09:34:15 -0700:
> git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/urgent-rcu.2023.06.11a
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b73056e9f82ebdf9f5dbcd378e5e51ae95d5000c
Thank you!
On Fri, Jun 16, 2023 at 11:50:31AM -0700, Linus Torvalds wrote: > On Fri, 16 Jun 2023 at 09:34, Paul E. McKenney <paulmck@kernel.org> wrote: > > > > Yes, it would be nice to abstract this somehow in order to hide it in > > SRCU, but I still don't see a good way of doing this. > > Ehh - like we actually do spinlocks in general, perhaps? > > Spinlocks always exist. On UP - with no spinlock debugging - it turns > into a zero-sized data structure, and the spin lock/unlock operations > are no-ops. > > Why don't you just do the exact same thing with the "struct > srcu_usage". For Tiny SRCU, just make it an empty struct, with an > empty initializer. > > IOW, don't "abstract it out". Abstract it IN. Make tiny-rcu still have > it, just as a no-op. > > Anyway, I've pulled your fix, but maybe the above would have been the > cleaner solution? Good point, thank you! I will add the lock to Tiny SRCU, shooting for the v6.6 merge window. Thanx, Paul