]> git.baikalelectronics.ru Git - kernel.git/commit
block_dev: Fixed direct I/O bio sector calculation
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 22 Nov 2016 06:38:49 +0000 (15:38 +0900)
committerJens Axboe <axboe@fb.com>
Tue, 22 Nov 2016 15:09:09 +0000 (08:09 -0700)
commit02b3e369e53de294f61e4fc2b88ef7a53e7d766f
tree6991c8002d4ff2b4d41e48efda0bff7cff419c35
parenta37149065d2189eaf6890daf7d6bec49bdfdb9d2
block_dev: Fixed direct I/O bio sector calculation

A direct I/O alignment must be always checked against the device blocks size,
but the I/O offset (bio->bi_iter.bi_sector must always use 512B sector unit, and
not the actual logical block size.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/block_dev.c