Re: [PATCH 0/4] seqlock: introduce scoped_seqlock_read() and scoped_seqlock_read_irqsave()

From: Oleg Nesterov

Date: Tue Oct 07 2025 - 12:36:01 EST


On 10/07, Linus Torvalds wrote:
>
> On Tue, 7 Oct 2025 at 07:22, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
> >
> > I can change scoped_seqlock_read() to do the same, to make
> > it symmetric with _irqsave() if you think it makes sense.
>
> I don't think it's visible to users, but maybe it would make the
> macros look slightly cleaner.

OK, agreed, will do tomorrow,

> And it would allow making 'lockless' an actual 'bool'

Yeees... This will slightly increase the "size" of defines, but I
guess this doesn't really matter in this case.

Thanks,

Oleg.