linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V4 0/3] nvmet: add target ns revalidate support
@ 2020-05-19  8:06 Chaitanya Kulkarni
  2020-05-19  8:06 ` [PATCH V4 1/4] nvmet: add helper to revalidate bdev and file ns Chaitanya Kulkarni
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Chaitanya Kulkarni @ 2020-05-19  8:06 UTC (permalink / raw)
  To: hch, sagi; +Cc: Chaitanya Kulkarni, linux-nvme

Hi Christoph/Sagi,

As per previous discussion on the ns-revalidation thread, this patch
series adds a new per namespace configfs attribute so that AEN check
can be triggered from the userspace with appropriate notification
tool(s).

As always test log at the end for reference.

Regards,
Chaitanya

Changes from V3:-
1. Use if/else than ?: in nvmet_ns_revalidate().
2. Move AEN generation in nvmet_ns_revalidate() into a separate patch
   and add documentation.
3. Rename configfs attribute from "resize_check" to "revalidate_size".
4. Only accept "true" value for "revalidate_size" from #3 otherwise
   return -EINVAL.

Changes from V2:-
1. Move old size check and AEN generation in nvmet_ns_revalidate(), fix
   the correspondig prototypes.
2. Return -EINVAL when ns is not enabled for resize_check attr.
3. Move result calculation into tracing code.

Changes from V1:-
1. Move AEN generation into common helper nvmet_ns_revalidate().
2. Change the calling convention of the nvmet_file_ns_revalidate()
   such that now it will return an error and take the parameter to 
   size_change boolean pointer to indicate a change in the size of
   namespace.
3. Move the result extraction into the tracing code.

Chaitanya Kulkarni (4):
  nvmet: add helper to revalidate bdev and file ns
  nvmet: generate AEN for ns revalidate size change
  nvmet: revalidate-ns & generate AEN from configfs
  nvmet: add async event tracing support

 drivers/nvme/target/admin-cmd.c |  5 +----
 drivers/nvme/target/configfs.c  | 26 ++++++++++++++++++++++++++
 drivers/nvme/target/core.c      | 14 ++++++++++++++
 drivers/nvme/target/nvmet.h     |  1 +
 drivers/nvme/target/trace.h     | 28 ++++++++++++++++++++++++++++
 5 files changed, 70 insertions(+), 4 deletions(-)

-- 
2.22.1


_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

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

end of thread, other threads:[~2020-05-20 17:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-19  8:06 [PATCH V4 0/3] nvmet: add target ns revalidate support Chaitanya Kulkarni
2020-05-19  8:06 ` [PATCH V4 1/4] nvmet: add helper to revalidate bdev and file ns Chaitanya Kulkarni
2020-05-19  8:49   ` Sagi Grimberg
2020-05-19  8:06 ` [PATCH V4 2/4] nvmet: generate AEN for ns revalidate size change Chaitanya Kulkarni
2020-05-19  8:57   ` Sagi Grimberg
2020-05-19  8:06 ` [PATCH V4 3/4] nvmet: revalidate-ns & generate AEN from configfs Chaitanya Kulkarni
2020-05-19  8:57   ` Sagi Grimberg
2020-05-19  8:06 ` [PATCH V4 4/4] nvmet: add async event tracing support Chaitanya Kulkarni
2020-05-19  8:57   ` Sagi Grimberg
2020-05-20 17:12 ` [PATCH V4 0/3] nvmet: add target ns revalidate support Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).