Spdk/lib/nvmf
Jiewei Ke 012bd3b942 lib/nvmf: Notify ANA change when namespace change happens
When ANA is enabled, if a new namespace is hot-added to the subsystem on
the target side, the Linux host will expect to receive an ANA change
notification after the namespace change one. Without the knowledge of
the namespace's ANA state, the host will not register the associated
block device, so users cannot see the nvme device.

In this patch, ANA change is notified right after namespace change, so
host will get ANA log, update the namespace's ANA state and then
register the block device if it is alive.

Signed-off-by: Jiewei Ke <jiewei@smartx.com>
Change-Id: I2faf61d344eb6de7efb2fde3cb1013cf0efd3c2e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5097
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2020-11-16 12:22:50 +00:00
..
ctrlr_bdev.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
ctrlr_discovery.c nvmf: Async event support for discovery log change 2020-11-11 00:53:57 +00:00
ctrlr.c nvmf: Async event support for discovery log change 2020-11-11 00:53:57 +00:00
fc_ls.c log: remove internal log.h header 2020-10-15 08:23:39 +00:00
fc.c nvmf/fc: optimize code to access structure members only when needed 2020-11-13 14:11:50 +00:00
Makefile build: cleanup LOCAL_SYS_LIBS for uuid 2020-09-29 09:36:25 +00:00
nvmf_fc.h nvmf/fc: Remove dead code in FC transport. 2020-11-13 05:29:56 +00:00
nvmf_internal.h nvmf: Async event support for discovery log change 2020-11-11 00:53:57 +00:00
nvmf_rpc.c nvmf: nvmf_subsystem_remove_host RPC now disconnects hosts 2020-10-22 03:55:57 +00:00
nvmf.c lib/nvmf: Notify ANA change when namespace change happens 2020-11-16 12:22:50 +00:00
rdma.c nvmf/rdma: Add RPC to set new RDMA batching option 2020-10-21 02:25:32 +00:00
spdk_nvmf.map nvmf: Add spdk_nvmf_subsystem_disconnect_host 2020-10-15 08:24:05 +00:00
subsystem.c nvmf: Async event support for discovery log change 2020-11-11 00:53:57 +00:00
tcp.c nvmf/tcp: Repack spdk_nvmf_tcp_qpair structure 2020-10-27 08:40:12 +00:00
transport.c nvmf/transport: Use mempool_get_bulk to feel pg cache 2020-09-09 07:19:50 +00:00
transport.h lib/nvmf: Add nvmf_transport_qpair_abort_request() 2020-07-14 07:54:42 +00:00