[PATCH 0/3] afs: fix the usage of read_seqbegin_or_lock()

Oleg Nesterov oleg at redhat.com
Thu Nov 30 03:55:37 PST 2023


Hello,

Every usage of read_seqbegin_or_lock() in fs/afs is wrong, the counter is
always even so read_seqbegin_or_lock() can never take the lock.

The users should either make it odd on the 2nd pass, or use read_seqbegin()
instead.

Oleg.
---

 fs/afs/callback.c |  3 ++-
 fs/afs/inode.c    | 15 ++++++---------
 fs/afs/server.c   |  7 ++++---
 3 files changed, 12 insertions(+), 13 deletions(-)




More information about the linux-afs mailing list