Lines Matching refs:ana_state
198 switch (ns->ana_state) { in __nvme_find_path()
250 if (ns->ana_state == NVME_ANA_OPTIMIZED) { in nvme_round_robin_path()
254 if (ns->ana_state == NVME_ANA_NONOPTIMIZED) in nvme_round_robin_path()
265 (old->ana_state == NVME_ANA_OPTIMIZED || in nvme_round_robin_path()
266 (!found && old->ana_state == NVME_ANA_NONOPTIMIZED))) in nvme_round_robin_path()
279 ns->ana_state == NVME_ANA_OPTIMIZED; in nvme_path_is_optimized()
582 ns->ana_state = desc->state; in nvme_update_ns_ana_state()
593 if (nvme_state_is_live(ns->ana_state) && in nvme_update_ns_ana_state()
759 return sysfs_emit(buf, "%s\n", nvme_ana_state_names[ns->ana_state]); in ana_state_show()
761 DEVICE_ATTR_RO(ana_state);
796 ns->ana_state = NVME_ANA_OPTIMIZED; in nvme_mpath_add_disk()