Each time the following file "/sys/kernel/config/nvmet/subsystems/nqn_name/namespaces/ns_id/enable" on the target side was changed, the SPDK initiator should receive an async event (type: SPDK_NVME_ASYNC_EVENT_TYPE_NOTICE, info: SPDK_NVME_ASYNC_EVENT_NS_ATTR_CHANGED). But actually not. Since for SPDK, when target sent the non-first event, the condition "nvmet_aen_bit_disabled(ctrl, NVME_AEN_BIT_NS_ATTR)" that prevents target from sending event was matched. This commit fix this issue by issuing a get_log_page cmd for each async event received, just as the kernel initiator does. Fixes #1825. Signed-off-by: tyler.sun <tyler.sun@dell.com> Change-Id: I2973470a81893456ca12e86ac390ea1de0eed62c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7107 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal | ||
Makefile |