In a test case, test/nvmf/host/failover.sh, we got ANA error even if the target did not enable ANA reporting. We marked the corresponding namespace as ANA state updating but we had no way to clear it. Check if we can read ANA log page before setting the flag. If read ANA log page failed, disable ANA feature until the nvme_ctrlr is created again. In this operation, all ana_state_updating flags are cleared. Fixes #2335 Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I4e2608a35d9dfa0395ad74fceebae9faf8cd973c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11399 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
scheduler | ||
sock | ||
Makefile |