BACKPORT: block/loop: set hw_sectors
authorShaohua Li <shli@fb.com>
Fri, 1 Sep 2017 05:09:45 +0000 (22:09 -0700)
committerMichael Benedict <michaelbt@live.com>
Sat, 5 Oct 2019 02:24:55 +0000 (12:24 +1000)
commitf48cbb937d5ae511593f4196ecf6fde82b393d38
treed6b0d594cd16a48d8d1ec72bd0ff2b705bf69c28
parent0019dc46e35128429fac98e09bc3b7cd4ec6fabe
BACKPORT: block/loop: set hw_sectors

Loop can handle any size of request. Limiting it to 255 sectors just
burns the CPU for bio split and request merge for underlayer disk and
also cause bad fs block allocation in directio mode.

Bug: 117823094
Change-Id: Ic4957181433c5a0d15f4cfdbf69dc5558d6dc5bd
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 54bb0ade6627a183c211345761ec46e4bf0048fe)
Signed-off-by: Martijn Coenen <maco@android.com>
drivers/block/loop.c