diff options
author | Hannes Reinecke <hare@suse.de> | 2020-01-31 11:37:39 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2020-03-30 12:42:40 +0200 |
commit | f9b6b98d24f7cec5b8269217f9d4fdec1ca43218 (patch) | |
tree | cbba5e01f87be19827df00dd7efc13d73114098f /drivers/block | |
parent | rbd: embed image request in blk-mq pdu (diff) | |
download | linux-f9b6b98d24f7cec5b8269217f9d4fdec1ca43218.tar.xz linux-f9b6b98d24f7cec5b8269217f9d4fdec1ca43218.zip |
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 3af09a0f208b..1e0a6b19ae0d 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -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.numa_node = NUMA_NO_NODE; 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); err = blk_mq_alloc_tag_set(&rbd_dev->tag_set); |