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

Shinichiro Kawasaki shinichiro.kawasaki at wdc.com
Tue Jan 9 20:12:16 PST 2024


On Dec 08, 2023 / 13:53, hare at kernel.org wrote:
> From: Hannes Reinecke <hare at suse.de>
> 
> 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.

Keith,

Could you consider to upstream these patches for kernel v6.8-rcX? They fix
lockdep WARNs observed with blktests nvme test groups and rdma/tcp transport.


More information about the Linux-nvme mailing list