Skip to content

Commit

Permalink
nvme: ensure unquiesce on teardown
Browse files Browse the repository at this point in the history
The reset work is called on quiesced IO queues, so ensure these are
unquiesced after a failed reset to flush out any pending requests.

Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
  • Loading branch information
keithbusch committed Jun 30, 2023
1 parent 99160af commit 2ab4e5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2778,6 +2778,7 @@ static void nvme_reset_work(struct work_struct *work)
nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_DELETING);
nvme_dev_disable(dev, true);
nvme_mark_namespaces_dead(&dev->ctrl);
nvme_unquiesce_io_queues(&dev->ctrl);
nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_DEAD);
}

Expand Down

0 comments on commit 2ab4e5f

Please sign in to comment.