Signed-off-by: Chaitanya Kulkarni <kch@xxxxxxxxxx> --- drivers/block/nbd.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 2a2a1d996a57..7a304812c280 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -1749,18 +1749,15 @@ static struct nbd_device *nbd_dev_add(int index, unsigned int refs) if (!nbd) goto out; - nbd->tag_set.ops = &nbd_mq_ops; - nbd->tag_set.nr_hw_queues = 1; - nbd->tag_set.queue_depth = 128; nbd->tag_set.numa_node = NUMA_NO_NODE; nbd->tag_set.cmd_size = sizeof(struct nbd_cmd); nbd->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_BLOCKING; - nbd->tag_set.driver_data = nbd; INIT_WORK(&nbd->remove_work, nbd_dev_remove_work); nbd->backend = NULL; - err = blk_mq_alloc_tag_set(&nbd->tag_set); + err = blk_mq_init_alloc_tag_set(&nbd->tag_set, &nbd_mq_ops, 1, 128, + nbd); if (err) goto out_free_nbd; -- 2.29.0