Skip to content

Commit 3ef1b4b

Browse files
committed
nvme-rdma: start async event handler after reconnecting to a controller
When we reset or reconnect to a controller, we are cancelling the async event handler so we can safely re-establish resources, but we need to remember to start it again when we successfully reconnect. Signed-off-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 28b8911 commit 3ef1b4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/nvme/host/rdma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ static void nvme_rdma_reconnect_ctrl_work(struct work_struct *work)
745745
if (ctrl->queue_count > 1) {
746746
nvme_start_queues(&ctrl->ctrl);
747747
nvme_queue_scan(&ctrl->ctrl);
748+
nvme_queue_async_events(&ctrl->ctrl);
748749
}
749750

750751
dev_info(ctrl->ctrl.device, "Successfully reconnected\n");
@@ -1747,6 +1748,7 @@ static void nvme_rdma_reset_ctrl_work(struct work_struct *work)
17471748
if (ctrl->queue_count > 1) {
17481749
nvme_start_queues(&ctrl->ctrl);
17491750
nvme_queue_scan(&ctrl->ctrl);
1751+
nvme_queue_async_events(&ctrl->ctrl);
17501752
}
17511753

17521754
return;

0 commit comments

Comments
 (0)