diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2018-01-12 17:22:10 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-04-02 10:12:38 +0200 |
commit | 24f1df60ce943aee107b3cb99b37a0152c9dd47a (patch) | |
tree | 09754ca68ebb53680318a5570acc6e4720d15a31 /drivers/block | |
parent | 0adb32858b0bddf4ada5f364a84ed60b196dbcda (diff) | |
download | linux-24f1df60ce943aee107b3cb99b37a0152c9dd47a.tar.bz2 |
rbd: set max_segment_size to UINT_MAX
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>
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 8e40da093766..4ca0a452d88e 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -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); |