OSDN Git Service

rbd: set max_segment_size to UINT_MAX
authorIlya Dryomov <idryomov@gmail.com>
Fri, 12 Jan 2018 16:22:10 +0000 (17:22 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:38 +0000 (10:12 +0200)
Commit 21acdf45f495 ("rbd: set max_segments to USHRT_MAX") removed the
limit on max_segments.  Remove the limit on max_segment_size as well.

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

index 8e40da0..4ca0a45 100644 (file)
@@ -4378,7 +4378,7 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
        blk_queue_max_hw_sectors(q, segment_size / SECTOR_SIZE);
        q->limits.max_sectors = queue_max_hw_sectors(q);
        blk_queue_max_segments(q, USHRT_MAX);
-       blk_queue_max_segment_size(q, segment_size);
+       blk_queue_max_segment_size(q, UINT_MAX);
        blk_queue_io_min(q, segment_size);
        blk_queue_io_opt(q, segment_size);