Re: [PATCH 7/8] uprobes: perform lockless SRCU-protected uprobes_tree lookup
From: Oleg Nesterov
Date: Thu Aug 08 2024 - 09:40:28 EST
On 07/31, Andrii Nakryiko wrote:
>
> static DEFINE_RWLOCK(uprobes_treelock); /* serialize rbtree access */
> +static seqcount_rwlock_t uprobes_seqcount = SEQCNT_RWLOCK_ZERO(uprobes_seqcount, &uprobes_treelock);
Just noticed... Why seqcount_rwlock_t?
find_uprobe_rcu() doesn't use read_seqbegin_or_lock(),
seqcount_t should work just fine.
Oleg.