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

Martin K. Petersen martin.petersen at oracle.com
Tue Jun 28 23:58:06 CDT 2016


>>>>> "Darrick" == Darrick J Wong <darrick.wong at oracle.com> writes:

Darrick> Make sure that the offset and length arguments that we're using
Darrick> to construct WRITE SAME and DISCARD requests are actually
Darrick> aligned to the logical block size.  Failure to do this causes
Darrick> other errors in other parts of the block layer or the SCSI
Darrick> layer because disks don't support partial logical block writes.

Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering



More information about the xfs mailing list