hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/nvme/host/rdma.c
....@@ -989,6 +989,7 @@
989989 goto out_cleanup_connect_q;
990990
991991 if (!new) {
992
+ nvme_start_freeze(&ctrl->ctrl);
992993 nvme_start_queues(&ctrl->ctrl);
993994 if (!nvme_wait_freeze_timeout(&ctrl->ctrl, NVME_IO_TIMEOUT)) {
994995 /*
....@@ -997,6 +998,7 @@
997998 * to be safe.
998999 */
9991000 ret = -ENODEV;
1001
+ nvme_unfreeze(&ctrl->ctrl);
10001002 goto out_wait_freeze_timed_out;
10011003 }
10021004 blk_mq_update_nr_hw_queues(ctrl->ctrl.tagset,
....@@ -1042,7 +1044,6 @@
10421044 bool remove)
10431045 {
10441046 if (ctrl->ctrl.queue_count > 1) {
1045
- nvme_start_freeze(&ctrl->ctrl);
10461047 nvme_stop_queues(&ctrl->ctrl);
10471048 nvme_sync_io_queues(&ctrl->ctrl);
10481049 nvme_rdma_stop_io_queues(ctrl);