]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: set max_sectors explicitly
authorIlya Dryomov <idryomov@gmail.com>
Wed, 7 Oct 2015 14:09:35 +0000 (16:09 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 16 Oct 2015 14:48:36 +0000 (16:48 +0200)
commitf2c4ff7969666fd0ef8db7bfe4a20b4efefe89a4
treed359df593de941a87b8e35fed863f295fa38e7f3
parent186f6599ed5cde61c9827a5391f6e95cc77b81bf
rbd: set max_sectors explicitly

Commit 54ce348c488a ("Revert "block: remove artifical max_hw_sectors
cap"") restored a clamp on max_sectors.  It's now 2560 sectors instead
of 1024, but it's not good enough: we set max_hw_sectors to rbd object
size because we don't want object sized I/Os to be split, and the
default object size is 4M.

So, set max_sectors to max_hw_sectors in rbd at queue init time.

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