mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
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 <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
28b8911853
commit
3ef1b4b298
1 changed files with 2 additions and 0 deletions
|
@ -745,6 +745,7 @@ static void nvme_rdma_reconnect_ctrl_work(struct work_struct *work)
|
||||||
if (ctrl->queue_count > 1) {
|
if (ctrl->queue_count > 1) {
|
||||||
nvme_start_queues(&ctrl->ctrl);
|
nvme_start_queues(&ctrl->ctrl);
|
||||||
nvme_queue_scan(&ctrl->ctrl);
|
nvme_queue_scan(&ctrl->ctrl);
|
||||||
|
nvme_queue_async_events(&ctrl->ctrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
dev_info(ctrl->ctrl.device, "Successfully reconnected\n");
|
dev_info(ctrl->ctrl.device, "Successfully reconnected\n");
|
||||||
|
@ -1747,6 +1748,7 @@ static void nvme_rdma_reset_ctrl_work(struct work_struct *work)
|
||||||
if (ctrl->queue_count > 1) {
|
if (ctrl->queue_count > 1) {
|
||||||
nvme_start_queues(&ctrl->ctrl);
|
nvme_start_queues(&ctrl->ctrl);
|
||||||
nvme_queue_scan(&ctrl->ctrl);
|
nvme_queue_scan(&ctrl->ctrl);
|
||||||
|
nvme_queue_async_events(&ctrl->ctrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue