Skip to content

Commit edde9e7

Browse files
sagigrimbergChristoph Hellwig
authored andcommitted
blk-mq-rdma: remove queue mapping helper for rdma devices
No rdma device exposes its irq vectors affinity today. So the only mapping that we have left, is the default blk_mq_map_queues, which we fallback to anyways. Also fixup the only consumer of this helper (nvme-rdma). Remove this now dead code. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Acked-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 015ad2b commit edde9e7

5 files changed

Lines changed: 2 additions & 66 deletions

File tree

block/Kconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@ config BLK_MQ_VIRTIO
215215
depends on VIRTIO
216216
default y
217217

218-
config BLK_MQ_RDMA
219-
bool
220-
depends on INFINIBAND
221-
default y
222-
223218
config BLK_PM
224219
def_bool PM
225220

block/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o blk-integrity.o
3030
obj-$(CONFIG_BLK_DEV_INTEGRITY_T10) += t10-pi.o
3131
obj-$(CONFIG_BLK_MQ_PCI) += blk-mq-pci.o
3232
obj-$(CONFIG_BLK_MQ_VIRTIO) += blk-mq-virtio.o
33-
obj-$(CONFIG_BLK_MQ_RDMA) += blk-mq-rdma.o
3433
obj-$(CONFIG_BLK_DEV_ZONED) += blk-zoned.o
3534
obj-$(CONFIG_BLK_WBT) += blk-wbt.o
3635
obj-$(CONFIG_BLK_DEBUG_FS) += blk-mq-debugfs.o

block/blk-mq-rdma.c

Lines changed: 0 additions & 44 deletions
This file was deleted.

drivers/nvme/host/rdma.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/string.h>
1313
#include <linux/atomic.h>
1414
#include <linux/blk-mq.h>
15-
#include <linux/blk-mq-rdma.h>
1615
#include <linux/blk-integrity.h>
1716
#include <linux/types.h>
1817
#include <linux/list.h>
@@ -2159,10 +2158,8 @@ static void nvme_rdma_map_queues(struct blk_mq_tag_set *set)
21592158
ctrl->io_queues[HCTX_TYPE_DEFAULT];
21602159
set->map[HCTX_TYPE_READ].queue_offset = 0;
21612160
}
2162-
blk_mq_rdma_map_queues(&set->map[HCTX_TYPE_DEFAULT],
2163-
ctrl->device->dev, 0);
2164-
blk_mq_rdma_map_queues(&set->map[HCTX_TYPE_READ],
2165-
ctrl->device->dev, 0);
2161+
blk_mq_map_queues(&set->map[HCTX_TYPE_DEFAULT]);
2162+
blk_mq_map_queues(&set->map[HCTX_TYPE_READ]);
21662163

21672164
if (opts->nr_poll_queues && ctrl->io_queues[HCTX_TYPE_POLL]) {
21682165
/* map dedicated poll queues only if we have queues left */

include/linux/blk-mq-rdma.h

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)