OSDN Git Service

block/loop: set hw_sectors
authorShaohua Li <shli@fb.com>
Fri, 1 Sep 2017 05:09:45 +0000 (22:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Sep 2017 14:44:32 +0000 (08:44 -0600)
commit54bb0ade6627a183c211345761ec46e4bf0048fe
tree7cb1c96d8825d0cc8e537f7269730aa56529e924
parent2670cd1674055ab48a9607472c5ff14781b9b2ea
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.

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>
drivers/block/loop.c