diff options
author | Hannes Reinecke <hare@suse.de> | 2023-12-08 13:53:21 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-01-10 13:27:45 -0800 |
commit | 31deaeb11ba7a885116c9c30892b9f763c04d59c (patch) | |
tree | cb074fe9e24f06493a217f85e1d4b5c8fb8e5254 /drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c | |
parent | 07a29b134ce8e47aef15ea71eab8e6b3734a9720 (diff) |
nvmet-rdma: avoid circular locking dependency on install_queue()
nvmet_rdma_install_queue() is driven from the ->io_work workqueue
function, but will call flush_workqueue() which might trigger
->release_work() which in itself calls flush_work on ->io_work.
To avoid that check for pending queue in disconnecting status,
and return 'controller busy' when we reached a certain threshold.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c')
0 files changed, 0 insertions, 0 deletions