[PATCH 0/4] seqlock: introduce scoped_seqlock_read() and scoped_seqlock_read_irqsave()
From: Oleg Nesterov
Date: Tue Oct 07 2025 - 10:22:14 EST
OK, please see V2. scoped_seqlock_read_irqsave() uses the
"for (struct {} s ..." hack to make "ulong flags" local.
I can change scoped_seqlock_read() to do the same, to make
it symmetric with _irqsave() if you think it makes sense.
I've dropped 5/5 which changed __dentry_path() for now.
Oleg.
fs/proc/array.c | 9 ++------
fs/proc/base.c | 10 ++------
include/linux/seqlock.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++
kernel/sched/cputime.c | 15 +++---------
4 files changed, 68 insertions(+), 27 deletions(-)