>>>>> "Christoph" == Christoph Hellwig <hch@xxxxxx> writes: Christoph, >> I like this better than the I/O error tracking approach. The >> blkdev_issue_write_same() -EOPNOTSUPP regression is still present, >> though. Christoph> Which one? Can't think of how that has anything to do with Christoph> blkdev_issue_discard. In 9082e87bfbf8 ("block: remove struct bio_batch") you changed the error return for blkdev_issue_write_same() to look like the one for discard: - if (bb.error) - return bb.error; - return ret; + if (bio) + ret = submit_bio_wait(REQ_WRITE | REQ_WRITE_SAME, bio); + return ret != -EOPNOTSUPP ? ret : 0; It's not a problem for SCSI since I'd be returning -EREMOTEIO. But if a stacking driver returns -EOPNOTSUPP in response to a WRITE SAME request we'll get data corruption. -- 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