mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 11:47:28 +07:00
rbd: enable multiple blk-mq queues
Allocate one queue per CPU and get a performance boost from higher parallelism. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
59e542c869
commit
f9b6b98d24
@ -4970,7 +4970,7 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
|
|||||||
rbd_dev->tag_set.queue_depth = rbd_dev->opts->queue_depth;
|
rbd_dev->tag_set.queue_depth = rbd_dev->opts->queue_depth;
|
||||||
rbd_dev->tag_set.numa_node = NUMA_NO_NODE;
|
rbd_dev->tag_set.numa_node = NUMA_NO_NODE;
|
||||||
rbd_dev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
|
rbd_dev->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
|
||||||
rbd_dev->tag_set.nr_hw_queues = 1;
|
rbd_dev->tag_set.nr_hw_queues = num_present_cpus();
|
||||||
rbd_dev->tag_set.cmd_size = sizeof(struct rbd_img_request);
|
rbd_dev->tag_set.cmd_size = sizeof(struct rbd_img_request);
|
||||||
|
|
||||||
err = blk_mq_alloc_tag_set(&rbd_dev->tag_set);
|
err = blk_mq_alloc_tag_set(&rbd_dev->tag_set);
|
||||||
|
Loading…
Reference in New Issue
Block a user