>>>>> "Christoph" == Christoph Hellwig <hch@xxxxxx> writes: Christoph> Currently blkdev_issue_zeroout cascades down from discards Christoph> (if the driver guarantees that discards zero data), to WRITE Christoph> SAME and then to a loop writing zeroes. Unfortunately we Christoph> ignore run-time EOPNOTSUPP errors in the block layer Christoph> blkdev_issue_discard helper to work around DM volumes that Christoph> may have mixed discard support underneath. Christoph> This patch intoroduces a new BLKDEV_DISCARD_ZERO flag to Christoph> blkdev_issue_discard that indicates we are called for zeroing Christoph> operation. This allows both to ignore the EOPNOTSUPP hack Christoph> and actually consolidating the discard_zeroes_data check into Christoph> the function. Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-block" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html