summaryrefslogtreecommitdiffstats
path: root/block/blk-merge.c
diff options
context:
space:
mode:
authorRitika Srivastava <ritika.srivastava@oracle.com>2020-09-01 22:17:31 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-02 03:38:33 +0200
commit8327cce5ff9376fac9ff713a8d5c99c16ba3fa33 (patch)
treef6c7b9cdf15953683061c61fc1e0e936aa5927a2 /block/blk-merge.c
parentblock: Return blk_status_t instead of errno codes (diff)
downloadlinux-8327cce5ff9376fac9ff713a8d5c99c16ba3fa33.tar.xz
linux-8327cce5ff9376fac9ff713a8d5c99c16ba3fa33.zip
block: better deal with the delayed not supported case in blk_cloned_rq_check_limits
If WRITE_ZERO/WRITE_SAME operation is not supported by the storage, blk_cloned_rq_check_limits() will return IO error which will cause device-mapper to fail the paths. Instead, if the queue limit is set to 0, return BLK_STS_NOTSUPP. BLK_STS_NOTSUPP will be ignored by device-mapper and will not fail the paths. Suggested-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Ritika Srivastava <ritika.srivastava@oracle.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-merge.c')
0 files changed, 0 insertions, 0 deletions