Re: [PATCH 1/1] block_dev: Fixed direct I/O bio sector calculation
From: Christoph Hellwig <hch@lst.de>
Date: 2016-11-22 07:32:15
From: Christoph Hellwig <hch@lst.de>
Date: 2016-11-22 07:32:15
On Tue, Nov 22, 2016 at 03:38:49PM +0900, Damien Le Moal wrote:
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 <redacted>
Ooops, yeah.. Looks good, Reviewed-by: Christoph Hellwig <hch@lst.de>