commit | 4d1a4765426fb57439164089b3cb537ec65356eb | [log] [tgz] |
---|---|---|
author | Damien Le Moal <damien.lemoal@wdc.com> | Tue Nov 22 15:38:49 2016 +0900 |
committer | Jens Axboe <axboe@fb.com> | Tue Nov 22 08:09:09 2016 -0700 |
tree | 6991c8002d4ff2b4d41e48efda0bff7cff419c35 | |
parent | 778889d8412e36e666b1e4ce108373613c84b428 [diff] |
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>