summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2017-10-29 13:21:01 +0100
committerChristoph Hellwig <hch@lst.de>2017-11-01 16:28:07 +0100
commit12fa1304badde26c5cf495d5af48df22a31c3a52 (patch)
treea6de04bd6068110b74263a1dc3d14403bb63a5e5 /drivers
parentnvme: consolidate common code from ->reset_work (diff)
downloadlinux-12fa1304badde26c5cf495d5af48df22a31c3a52.tar.xz
linux-12fa1304badde26c5cf495d5af48df22a31c3a52.zip
nvme-rdma: reuse nvme_delete_ctrl when reconnect attempts expire
instead of just queueing delete work Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvme/host/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index ed6e05018a92..03644ecf68d2 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -912,7 +912,7 @@ static void nvme_rdma_reconnect_or_remove(struct nvme_rdma_ctrl *ctrl)
ctrl->ctrl.opts->reconnect_delay * HZ);
} else {
dev_info(ctrl->ctrl.device, "Removing controller...\n");
- queue_work(nvme_wq, &ctrl->ctrl.delete_work);
+ nvme_delete_ctrl(&ctrl->ctrl);
}
}