diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2023-07-31 12:37:58 +0200 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2023-10-05 09:37:41 -0700 |
commit | 3820c4fdc247b6f0a4162733bdb8ddf8f2e8a1e4 (patch) | |
tree | 6637a75793ec5611247fc97ac440b57a9a5e207c /net/unix/sysctl_net_unix.c | |
parent | 07a1141ff170ff5d4f9c4fbb0453727ab48096e5 (diff) |
nvme-rdma: do not try to stop unallocated queues
Trying to stop a queue which hasn't been allocated will result
in a warning due to calling mutex_lock() against an uninitialized mutex.
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 4 PID: 104150 at kernel/locking/mutex.c:579
Call trace:
RIP: 0010:__mutex_lock+0x1173/0x14a0
nvme_rdma_stop_queue+0x1b/0xa0 [nvme_rdma]
nvme_rdma_teardown_io_queues.part.0+0xb0/0x1d0 [nvme_rdma]
nvme_rdma_delete_ctrl+0x50/0x100 [nvme_rdma]
nvme_do_delete_ctrl+0x149/0x158 [nvme_core]
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions