[PATCH 0/2] nvmet: avoid circular locking warning

Shinichiro Kawasaki shinichiro.kawasaki at wdc.com
Wed Nov 1 05:40:53 PDT 2023


On Nov 01, 2023 / 11:32, Hannes Reinecke wrote:
> 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.

I confirmed this series avoids the failure that I reported for blktests
test case nvme/003 with trtype=rdma or tcp. For the series,

Tested-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>


More information about the Linux-nvme mailing list