OSDN Git Service

rbd: queue_depth map option
authorIlya Dryomov <idryomov@gmail.com>
Tue, 23 Jun 2015 13:21:19 +0000 (16:21 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 15:30:55 +0000 (18:30 +0300)
commitb55841807fb864eccca0167650a65722fd7cd553
tree3eba5cb07a57ccb39a8e9d52117de194d2445dfa
parentd147543d7943eaa549a569143b7815482585fb91
rbd: queue_depth map option

nr_requests (/sys/block/rbd<id>/queue/nr_requests) is pretty much
irrelevant in blk-mq case because each driver sets its own max depth
that it can handle and that's the number of tags that gets preallocated
on setup.  Users can't increase queue depth beyond that value via
writing to nr_requests.

For rbd we are happy with the default BLKDEV_MAX_RQ (128) for most
cases but we want to give users the opportunity to increase it.
Introduce a new per-device queue_depth option to do just that:

    $ sudo rbd map -o queue_depth=1024 ...

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/block/rbd.c