• I
    rbd: queue_depth map option · b5584180
    Ilya Dryomov 提交于
    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: NIlya Dryomov <idryomov@gmail.com>
    Reviewed-by: NAlex Elder <elder@linaro.org>
    b5584180
rbd.c 146.6 KB