dm mpath: retry BLK_STS_RESOURCE errors
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 9 Aug 2017 18:32:15 +0000 (11:32 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 28 Aug 2017 13:58:26 +0000 (09:58 -0400)
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>
drivers/md/dm-mpath.c

index 0e8ab5bb3575fccf24a5734d1f5fe8149210b6aa..3486c829fa50ad661bce80dd8380cd6343c7cb18 100644 (file)
@@ -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;
        }