[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231130115537.GA21550@redhat.com>
Date: Thu, 30 Nov 2023 12:55:37 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: David Howells <dhowells@...hat.com>
Cc: Al Viro <viro@...iv.linux.org.uk>,
Marc Dionne <marc.dionne@...istor.com>,
linux-afs@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/3] afs: fix the usage of read_seqbegin_or_lock()
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(-)
Powered by blists - more mailing lists