Re: [PATCH] rxrpc_find_service_conn_rcu: use read_seqbegin() rather than read_seqbegin_or_lock()

From: David Howells
Date: Thu Nov 16 2023 - 10:03:12 EST


Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> > > - 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.
>
> OK, then how about the patch below?

That seems to work.

David