summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-07-19 11:23:34 +0200
committerJens Axboe <axboe@fb.com>2016-07-20 17:35:22 -0600
commit3f40bf2c89223192535a72a4d49ce7d68d8ed9dd (patch)
tree3735095a40bdb41e437bc74bb192e540a63c0895 /block
parente950fdf71c9b4a6b63b58fed78956a96cc907402 (diff)
downloadblackbird-op-linux-3f40bf2c89223192535a72a4d49ce7d68d8ed9dd.tar.gz
blackbird-op-linux-3f40bf2c89223192535a72a4d49ce7d68d8ed9dd.zip
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-lib.c b/block/blk-lib.c
index 45b35b15496f..e371f83a3186 100644
--- a/block/blk-lib.c
+++ b/block/blk-lib.c
@@ -178,7 +178,7 @@ int blkdev_issue_write_same(struct block_device *bdev, sector_t sector,
if (bio)
ret = submit_bio_wait(bio);
- return ret != -EOPNOTSUPP ? ret : 0;
+ return ret;
}
EXPORT_SYMBOL(blkdev_issue_write_same);
OpenPOWER on IntegriCloud