WSL2-Linux-Kernel/drivers/nvme/target
Chaitanya Kulkarni de124f4273 nvmet: generate AEN for ns revalidate size change
The newly added function nvmet_ns_revalidate() does update the ns size
in the identify namespace in-core target data structure when host issues
id-ns command. This can lead to host having inconsistencies between size
of the namespace present in the id-ns command result and size of the
corresponding block device until host scans the namespaces explicitly.

To avoid this scenario generate AEN if old size is not same as the new
one in nvmet_ns_revalidate().

This will allow automatic AEN generation when host calls id-ns command
and also allows target to install userspace rules so that it can trigger
nvmet_ns_revalidate() (using configfs interface with the help of next
patch) resulting in appropriate AEN generation when underlying namespace
size change is detected.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimbeg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2020-05-27 07:12:38 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00
admin-cmd.c nvmet: add helper to revalidate bdev and file ns 2020-05-27 07:12:38 +02:00
configfs.c nvmet: mark nvmet_ana_state static 2020-05-27 07:12:36 +02:00
core.c nvmet: generate AEN for ns revalidate size change 2020-05-27 07:12:38 +02:00
discovery.c nvmet: fill discovery controller sn, fr and mn correctly 2019-11-04 10:56:42 -07:00
fabrics-cmd.c nvmet: Fix controller use after free 2020-02-05 01:13:09 +09:00
fc.c nvmet-fc: slight cleanup for kbuild test warnings 2020-05-09 16:18:35 -06:00
fcloop.c nvme-fcloop: add target to host LS request support 2020-05-09 16:18:34 -06:00
io-cmd-bdev.c nvmet: add ns revalidation support 2020-05-09 16:18:35 -06:00
io-cmd-file.c nvmet: add ns revalidation support 2020-05-09 16:18:35 -06:00
loop.c nvme: Make nvme_uninit_ctrl symmetric to nvme_init_ctrl 2020-03-26 04:51:56 +09:00
nvmet.h nvmet: add helper to revalidate bdev and file ns 2020-05-27 07:12:38 +02:00
rdma.c nvmet-rdma: use SRQ per completion vector 2020-05-09 16:18:35 -06:00
tcp.c nvmet-tcp: move send/recv error handling in the send/recv methods instead of call-sites 2020-05-27 07:12:37 +02:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: add async event tracing support 2020-05-27 07:12:38 +02:00