Re: [PATCH 2/3] block: require write_same and discard requests align to logical block size

From: Christoph Hellwig
Date: Tue Mar 15 2016 - 03:35:59 EST


On Fri, Mar 04, 2016 at 04:56:10PM -0800, Darrick J. Wong wrote:
> Make sure that the offset and length arguments that we're using to
> construct WRITE SAME and DISCARD requests are actually aligned to the
> logical block size. Failure to do this causes other errors in other
> parts of the block layer or the SCSI layer because disks don't support
> partial logical block writes.

Looks fine,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>