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

Oleg Nesterov
2023-11-30T11:56:57Z

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(-)