NVME_CTRL_LIVE
if (!nvme_change_ctrl_state(&anv->ctrl, NVME_CTRL_LIVE)) {
if (state == NVME_CTRL_LIVE ||
if (nvme_ctrl_state(&anv->ctrl) != NVME_CTRL_LIVE) {
if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE)
if (state == NVME_CTRL_LIVE || state == NVME_CTRL_CONNECTING)
if (nvme_ctrl_state(ctrl) == NVME_CTRL_LIVE && ctrl->tagset)
if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE)
if (nvme_ctrl_state(ctrl) == NVME_CTRL_LIVE)
case NVME_CTRL_LIVE:
if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE || !ctrl->tagset)
if (nvme_ctrl_state(ctrl) == NVME_CTRL_LIVE)
!nvme_change_ctrl_state(ctrl, NVME_CTRL_LIVE))
case NVME_CTRL_LIVE:
case NVME_CTRL_LIVE:
case NVME_CTRL_LIVE:
if (new_state == NVME_CTRL_LIVE) {
if (state != NVME_CTRL_LIVE)
if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_LIVE)) {
if (nvme_ctrl_state(ns->ctrl) == NVME_CTRL_LIVE)
if (state != NVME_CTRL_LIVE && state != NVME_CTRL_DELETING)
return nvme_ctrl_state(ns->ctrl) == NVME_CTRL_LIVE &&
case NVME_CTRL_LIVE:
nvme_ctrl_state(ns->ctrl) == NVME_CTRL_LIVE)
if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE)
case NVME_CTRL_LIVE:
if (likely(state == NVME_CTRL_LIVE))
!nvme_change_ctrl_state(ctrl, NVME_CTRL_LIVE))
if (state == NVME_CTRL_LIVE || state == NVME_CTRL_RESETTING) {
if (!nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_LIVE)) {
if (!nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_LIVE)) {
if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE)
changed = nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_LIVE);
if (nvme_ctrl_state(&ctrl->ctrl) == NVME_CTRL_LIVE)
if (nvme_ctrl_state(&ctrl->ctrl) != NVME_CTRL_LIVE) {
WARN_ON_ONCE(state == NVME_CTRL_NEW || state == NVME_CTRL_LIVE);
[NVME_CTRL_LIVE] = "live",
WARN_ON_ONCE(state == NVME_CTRL_NEW || state == NVME_CTRL_LIVE);
if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_LIVE)) {
if (nvme_ctrl_state(ctrl) != NVME_CTRL_LIVE) {
if (nvme_ctrl_state(&ctrl->ctrl) == NVME_CTRL_LIVE)
if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_LIVE))
if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_LIVE))