]> www.infradead.org Git - users/jedix/linux-maple.git/commit
afs: Don't use mutex for I/O operation lock
authorDavid Howells <dhowells@redhat.com>
Mon, 16 Dec 2024 20:41:01 +0000 (20:41 +0000)
committerChristian Brauner <brauner@kernel.org>
Fri, 20 Dec 2024 21:34:04 +0000 (22:34 +0100)
commit6e0b503dc65c89b83fbfafb4dac5201c844da1de
tree8e0a2178b2319c17bc1bb7237a98a6d11c492958
parent627cf645277b6f8e6128e2c86907a81970bce87a
afs: Don't use mutex for I/O operation lock

Don't use the standard mutex for the I/O operation lock, but rather
implement our own as the standard mutex must be released in the same thread
as locked it.  This is a problem when it comes to doing async FetchData
where the lock will be dropped from the workqueue that processed the
incoming data and not from the issuing thread.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20241216204124.3752367-12-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/afs/fs_operation.c
fs/afs/internal.h
fs/afs/super.c