nvmet-tcp: use 'spin_lock_bh' for state_lock()
authorHannes Reinecke <hare@suse.de>
Thu, 12 Oct 2023 12:59:54 +0000 (14:59 +0200)
committerKeith Busch <kbusch@kernel.org>
Tue, 17 Oct 2023 20:57:54 +0000 (13:57 -0700)
commitbbacf79201a1664f174e341f4bc0205b25b309d7
tree3ee23b74f203ad48bbb674430ee1e16ff08fa5f2
parentd680063482885c15d68e958212c3d6ad40a510dd
nvmet-tcp: use 'spin_lock_bh' for state_lock()

nvmet_tcp_schedule_release_queue() is called from socket state
change callbacks, which may be called from an softirq context.
So use 'spin_lock_bh' to avoid a spin lock warning.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/tcp.c