]> git.baikalelectronics.ru Git - kernel.git/commit
loop: set physical block size to PAGE_SIZE
authorOmar Sandoval <osandov@fb.com>
Thu, 24 Aug 2017 07:03:42 +0000 (00:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Aug 2017 19:51:12 +0000 (13:51 -0600)
commit400522b39270f38f81d56a21f9656f1d4671c358
tree47c20664f91ebd3591628a8ec52ca06b7dbbef76
parentba0e8b82c1549396a1728a2afc578339ba6438c2
loop: set physical block size to PAGE_SIZE

The physical block size is "the lowest possible sector size that the
hardware can operate on without reverting to read-modify-write
operations" (from the comment on blk_queue_physical_block_size()). Since
loop does buffered I/O on the backing file by default, the RMW unit is a
page. This isn't the case for direct I/O mode, but let's keep it simple.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c