summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/sync_debug.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2017-12-21 15:35:11 +0100
committerIlya Dryomov <idryomov@gmail.com>2018-01-09 17:40:48 +0100
commit21acdf45f4958135940f0b4767185cf911d4b010 (patch)
tree237bd2ed3d14ea13bef18f86874023c0c23893cc /drivers/dma-buf/sync_debug.c
parentedd8ca8015800b354453b891d38960f3a474b7e4 (diff)
downloadop-kernel-dev-21acdf45f4958135940f0b4767185cf911d4b010.zip
op-kernel-dev-21acdf45f4958135940f0b4767185cf911d4b010.tar.gz
rbd: set max_segments to USHRT_MAX
Commit d3834fefcfe5 ("rbd: bump queue_max_segments") bumped max_segments (unsigned short) to max_hw_sectors (unsigned int). max_hw_sectors is set to the number of 512-byte sectors in an object and overflows unsigned short for 32M (largest possible) objects, making the block layer resort to handing us single segment (i.e. single page or even smaller) bios in that case. Cc: stable@vger.kernel.org Fixes: d3834fefcfe5 ("rbd: bump queue_max_segments") Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/dma-buf/sync_debug.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud