[PATCH] rxrpc_find_service_conn_rcu: use read_seqbegin() rather than read_seqbegin_or_lock()
Al Viro
viro at zeniv.linux.org.uk
Wed Nov 1 13:52:38 PDT 2023
On Wed, Nov 01, 2023 at 09:23:03PM +0100, Oleg Nesterov wrote:
> Yes this is confusing. Again, even the documentation is wrong! That is why
> I am trying to remove the misuse of read_seqbegin_or_lock(), then I am going
> to change the semantics of need_seqretry() to enforce the locking on the 2nd
> pass.
What for? Sure, documentation needs to be fixed, but *not* in direction you
suggested in that patch.
Why would you want to force that "switch to locked on the second pass" policy
on every possible caller?
More information about the linux-afs
mailing list