743271d92d
Since the command set identifier might be accessed at several different states in the nvme state machine, cache it so that we don't need to loop through the ns id desc list every time. This is similar to how other identify fields are cached using nvme_ns_set_identify_data(). None of the identifiers in the desc list (including the new CSI) can change over the life time of a namespace, so caching them should be safe. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: Ie06180a4b3750dfa1a42f47afe0f7f9e3ec04ba9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4266 Community-CI: Broadcom CI Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr_ocssd_cmd.c | ||
nvme_ctrlr.c | ||
nvme_cuse.c | ||
nvme_cuse.h | ||
nvme_fabric.c | ||
nvme_internal.h | ||
nvme_io_msg.c | ||
nvme_io_msg.h | ||
nvme_ns_cmd.c | ||
nvme_ns_ocssd_cmd.c | ||
nvme_ns.c | ||
nvme_opal_internal.h | ||
nvme_opal.c | ||
nvme_pcie.c | ||
nvme_poll_group.c | ||
nvme_qpair.c | ||
nvme_quirks.c | ||
nvme_rdma.c | ||
nvme_tcp.c | ||
nvme_transport.c | ||
nvme_uevent.c | ||
nvme_uevent.h | ||
nvme.c | ||
spdk_nvme.map |