block: better deal with the delayed not supported case in blk_cloned_rq_check_limits
mainline inclusion from mainline-v5.10 commit 8327cce5 category: bugfix bugzilla: 46895 CVE: NA --------------------------- 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> Conflicts: block/blk-core.c Signed-off-by:
yangerkun <yangerkun@huawei.com> Reviewed-by:
Jason Yan <yanaijie@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Signed-off-by:
Cheng Jian <cj.chengjian@huawei.com>
Loading
Please sign in to comment