aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-05-08 09:08:23 -0600
committerJens Axboe <axboe@kernel.dk>2025-05-08 09:08:23 -0600
commitdd90905d5a8a15a6d4594d15fc8ed626587187ca (patch)
treeba59b9104ee145e15b8a99f77472892c10e8db26
parentblock: remove test of incorrect io priority level (diff)
parentnvme: unblock ctrl state transition for firmware update (diff)
downloadwireguard-linux-dd90905d5a8a15a6d4594d15fc8ed626587187ca.tar.xz
wireguard-linux-dd90905d5a8a15a6d4594d15fc8ed626587187ca.zip
Merge tag 'nvme-6.15-2025-05-08' of git://git.infradead.org/nvme into block-6.15
Pull NVMe fix from Christoph: "nvme fixes for linux 6.15 - unblock ctrl state transition for firmware update (Daniel Wagner)" * tag 'nvme-6.15-2025-05-08' of git://git.infradead.org/nvme: nvme: unblock ctrl state transition for firmware update
-rw-r--r--drivers/nvme/host/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index eb6ea8acb3cc..ac53629fce68 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4493,7 +4493,8 @@ static void nvme_fw_act_work(struct work_struct *work)
msleep(100);
}
- if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_LIVE))
+ if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_CONNECTING) ||
+ !nvme_change_ctrl_state(ctrl, NVME_CTRL_LIVE))
return;
nvme_unquiesce_io_queues(ctrl);