block: don't ignore -EOPNOTSUPP blkdev_issue_write_same
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jul 2016 09:23:34 +0000 (11:23 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 20 Jul 2016 23:35:22 +0000 (17:35 -0600)
commit3f40bf2c89223192535a72a4d49ce7d68d8ed9dd
tree3735095a40bdb41e437bc74bb192e540a63c0895
parente950fdf71c9b4a6b63b58fed78956a96cc907402
block: don't ignore -EOPNOTSUPP blkdev_issue_write_same

WRITE SAME is a data integrity operation and we can't simply ignore
errors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-lib.c