]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: set the max segments to USHRT_MAX
authorJosef Bacik <josef@toxicpanda.com>
Thu, 20 Apr 2017 19:47:01 +0000 (15:47 -0400)
committerJens Axboe <axboe@fb.com>
Fri, 21 Apr 2017 01:53:24 +0000 (19:53 -0600)
commit402ea00e2f695f6a3792e3f220b6ae1bd85ab849
tree49992c745eb4b25f4e6e2831ddcf3e6784b9e33f
parent1a57531a2f0f38f595086d2f9c4e44924136c920
nbd: set the max segments to USHRT_MAX

I lack the basic understanding of what segments mean, so we were being
limited to 512kib requests even with higher max_sectors sizes set.
Setting the maximum number of segments to unlimited allows us to
actually have arbitrarily large IO's go through NBD.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c