[PATCH] rxrpc_find_service_conn_rcu: use read_seqbegin() rather than read_seqbegin_or_lock()
David Howells
dhowells at redhat.com
Thu Nov 16 05:41:46 PST 2023
Oleg Nesterov <oleg at redhat.com> wrote:
> So do you agree that
>
> - the usage of read_seqbegin_or_lock/need_seqretry in
> this code makes no sense because read_seqlock_excl()
> is not possible
Not exactly. I think it should take a lock on the second pass.
> - this patch doesn't change the current behaviour but
> simplifies the code and makes it more clear
That is true.
David
More information about the linux-afs
mailing list