All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nvme-tcp: lockdep: use dynamic lockdep keys per socket instance
@ 2026-05-30  5:20 Shin'ichiro Kawasaki
  2026-05-30  5:20 ` [PATCH 1/2] nvme-tcp: move nvme_tcp_reclassify_socket() Shin'ichiro Kawasaki
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Shin'ichiro Kawasaki @ 2026-05-30  5:20 UTC (permalink / raw)
  To: linux-nvme, Keith Busch, Jens Axboe
  Cc: Christoph Hellwig, Sagi Grimberg, Nilay Shroff,
	Shin'ichiro Kawasaki

When NVMe-TCP controller setup and teardown are repeated with lockdep
enabled, lockdep reports false-positive WARNs. This was observed when
running blktests nvme/005 on v7.1-rc1 with a patch [1]. Analysis by
Nilay [2] confirmed that the WARNs are false positives caused by lockdep
confusing different socket instances due to shared static lockdep keys.

This series resolves the issue by using dynamically allocated lockdep
keys per socket instance instead of static keys. This ensures lockdep
correctly tracks locks across different socket instances. For that
purpose, the first patch moves a function as preparation. The second
patch introduces the dynamic lockdep keys.

[1] https://lore.kernel.org/linux-nvme/afB5syZbUrppgsDQ@shinmob/
[2] https://lore.kernel.org/linux-nvme/c4ddc101-184a-4e4f-82ca-c3123bce5e34@linux.ibm.com/

Shin'ichiro Kawasaki (2):
  nvme-tcp: move nvme_tcp_reclassify_socket()
  nvme-tcp: lockdep: use dynamic lockdep keys per socket instance

 drivers/nvme/host/tcp.c | 88 +++++++++++++++++++++++------------------
 1 file changed, 49 insertions(+), 39 deletions(-)

-- 
2.54.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-06-03 11:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-30  5:20 [PATCH 0/2] nvme-tcp: lockdep: use dynamic lockdep keys per socket instance Shin'ichiro Kawasaki
2026-05-30  5:20 ` [PATCH 1/2] nvme-tcp: move nvme_tcp_reclassify_socket() Shin'ichiro Kawasaki
2026-05-31 15:21   ` Nilay Shroff
2026-06-01  7:06   ` Christoph Hellwig
2026-05-30  5:20 ` [PATCH 2/2] nvme-tcp: lockdep: use dynamic lockdep keys per socket instance Shin'ichiro Kawasaki
2026-05-31 15:22   ` Nilay Shroff
2026-06-01  7:06   ` Christoph Hellwig
2026-06-02 10:13   ` Keith Busch
2026-06-03 11:00     ` Shin'ichiro Kawasaki
2026-06-03  9:44 ` [PATCH 0/2] " Keith Busch
2026-06-03 11:01   ` Shin'ichiro Kawasaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.