]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rxrpc: Disable IRQ, not BH, to take the lock for ->attend_link
authorDavid Howells <dhowells@redhat.com>
Thu, 12 Dec 2024 20:58:15 +0000 (20:58 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Dec 2024 02:06:23 +0000 (18:06 -0800)
commitd920270a6dbf756384b125ce39c17666a7c0c9f4
treed665996e202c068ef784ed6c5cb221ef5dcadb2f
parent9495e6688522f7de5d72eb98b49420bc2ba40967
rxrpc: Disable IRQ, not BH, to take the lock for ->attend_link

Use spin_lock_irq(), not spin_lock_bh() to take the lock when accessing the
->attend_link() to stop a delay in the I/O thread due to an interrupt being
taken in the app thread whilst that holds the lock and vice versa.

Fixes: a2ea9a907260 ("rxrpc: Use irq-disabling spinlocks between app and I/O thread")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/2870146.1734037095@warthog.procyon.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/io_thread.c