nvme: Initialize ANA state to optimized if ANA reporting is not supported
Initialize ANA state of each namespace to optimized regardless of whether ANA is supported or not. This will simplify the code to get the optimal I/O path because we do not have to care if the namespace supports ANA. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I24dfe08674af398671de6528b884e9d82409eeae Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7890 Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
a3f581e83b
commit
a4f96d93a8
@ -800,6 +800,12 @@ nvme_ctrlr_set_supported_log_pages(struct spdk_nvme_ctrlr *ctrlr)
|
||||
nvme_ctrlr_parse_ana_log_page(ctrlr, nvme_ctrlr_update_ns_ana_states,
|
||||
ctrlr);
|
||||
}
|
||||
} else {
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < ctrlr->num_ns; i++) {
|
||||
ctrlr->ns[i].ana_state = SPDK_NVME_ANA_OPTIMIZED_STATE;
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user