diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-09 11:32:15 -0700 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-08-28 09:58:26 -0400 |
commit | 68515cc72191f5c5d86f6ef7091dc8ba714d96e4 (patch) | |
tree | ce77db4f3a80a97dc6ebfcc597f875e84829eec2 /drivers/md | |
parent | 54385bf75cc6451f29f3a149582584d5015d2c98 (diff) |
dm mpath: retry BLK_STS_RESOURCE errors
Retry requests instead of failing them if an out-of-memory error occurs
or the block driver below dm-mpath is busy. This restores the v4.12
behavior of noretry_error(), namely that -ENOMEM results in a retry.
Fixes: 2a842acab109 ("block: introduce new block status code type")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-mpath.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 0e8ab5bb3575..3486c829fa50 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -1458,7 +1458,6 @@ static int noretry_error(blk_status_t error) case BLK_STS_TARGET: case BLK_STS_NEXUS: case BLK_STS_MEDIUM: - case BLK_STS_RESOURCE: return 1; } |