BACKPORT: block/loop: set hw_sectors
authorShaohua Li <shli@fb.com>
Fri, 1 Sep 2017 05:09:45 +0000 (22:09 -0700)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:58 +0000 (21:13 +0000)
commitf3cd37a7c5981fe32eee0727e2c6ddd0755ccb73
treec73c9ee333594eb31413eaec1e69f87a9fb7662e
parent6c7b36732203d499cf69142d29c1145d87bbae32
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