Commit a3dd7d00 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Jens Axboe
Browse files

nvmet-rdma: Don't flush system_wq by default during remove_one

The .remove_one function is called for any ib_device removal.
In case the removed device has no reference in our driver, there
is no need to flush the system work queue.
Reviewed-by: default avatarIsrael Rukshin <>
Signed-off-by: default avatarMax Gurtovoy <>
Reviewed-by: default avatarSagi Grimberg <>
Signed-off-by: default avatarKeith Busch <>
Signed-off-by: default avatarJens Axboe <>
parent e1a2ee24
......@@ -1469,8 +1469,25 @@ static struct nvmet_fabrics_ops nvmet_rdma_ops = {
static void nvmet_rdma_remove_one(struct ib_device *ib_device, void *client_data)
struct nvmet_rdma_queue *queue, *tmp;
struct nvmet_rdma_device *ndev;
bool found = false;
list_for_each_entry(ndev, &device_list, entry) {
if (ndev->device == ib_device) {
found = true;
if (!found)
/* Device is being removed, delete all queues using this device */
* IB Device that is used by nvmet controllers is being removed,
* delete all queues using this device.
list_for_each_entry_safe(queue, tmp, &nvmet_rdma_queue_list,
queue_list) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment