All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nvmet: add namespace-level debugfs for reservation state
@ 2026-06-22 10:44 Guixin Liu
  2026-06-22 10:44 ` [PATCH 1/2] nvmet: add namespace-level debugfs directory Guixin Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Guixin Liu @ 2026-06-22 10:44 UTC (permalink / raw)
  To: Christoph Hellwig, Sagi Grimberg, Chaitanya Kulkarni,
	Hannes Reinecke
  Cc: linux-nvme

This series adds debugfs support for inspecting NVMe target reservation
(PR) state at the namespace level.

Patch 1 introduces per-namespace debugfs directories under each subsystem,
providing the infrastructure for namespace-specific debug entries.

Patch 2 adds a 'reservation' file that exposes the persistent reservation
state including enable status, generation counter, holder information, and
the full registrant list.

Example output with two registered hosts and an active holder:

  $ cat /sys/kernel/debug/nvmet/testnqn/ns1/reservation
  enable : 1
  generation : 2
  notify_mask : 0x0
  rtype : write_exclusive
  holder : hostid=11111111-1111-1111-1111-111111111111, rkey=0x1111
  registrants:
    hostid=11111111-1111-1111-1111-111111111111, rkey=0x1111
    hostid=22222222-2222-2222-2222-222222222222, rkey=0x2222

Guixin Liu (2):
  nvmet: add namespace-level debugfs directory
  nvmet: expose reservation state through debugfs

 drivers/nvme/target/core.c    |  2 +
 drivers/nvme/target/debugfs.c | 75 +++++++++++++++++++++++++++++++++++
 drivers/nvme/target/debugfs.h |  5 +++
 drivers/nvme/target/nvmet.h   |  3 ++
 4 files changed, 85 insertions(+)

-- 
2.43.7



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

end of thread, other threads:[~2026-07-07  1:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22 10:44 [PATCH 0/2] nvmet: add namespace-level debugfs for reservation state Guixin Liu
2026-06-22 10:44 ` [PATCH 1/2] nvmet: add namespace-level debugfs directory Guixin Liu
2026-06-22 10:44 ` [PATCH 2/2] nvmet: expose reservation state through debugfs Guixin Liu
2026-06-25  7:17 ` [PATCH 0/2] nvmet: add namespace-level debugfs for reservation state Daniel Wagner
2026-06-25  9:10   ` Guixin Liu
2026-07-06  3:10     ` Guixin Liu
2026-07-06  7:59       ` Daniel Wagner
2026-07-06 10:28         ` Guixin Liu
2026-07-06 12:57           ` Shin'ichiro Kawasaki
2026-07-07  1:42             ` Guixin Liu

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.