[PATCH 0/2] nvmet: avoid circular locking warning
Hannes Reinecke
hare at suse.de
Wed Nov 1 03:32:26 PDT 2023
nvmet-rdma and nvmet-tcp trigger a circular locking warning when
tearing down; reason is a call to 'flush_workqueue' when creating
a new controller which tries to cover for the fact that old controller
instances might be in the process of tearing down.
However, this is pure speculation as we don't know (and don't check)
if there really _are_ controllers in shutdown.
And even if there were, that should be short-lived, and would have been
resolved by connecting just a tad later.
So this patch returns 'controller busy' if we really find ourselves in this
situation, allowing the caller to reconnect later.
Hannes Reinecke (2):
nvmet-rdma: avoid circular locking dependency on install_queue()
nvmet-tcp: avoid circular locking dependency on install_queue()
drivers/nvme/target/rdma.c | 14 ++++++++++++--
drivers/nvme/target/tcp.c | 14 ++++++++++++--
2 files changed, 24 insertions(+), 4 deletions(-)
--
2.35.3
More information about the Linux-nvme
mailing list