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)
commit68515cc72191f5c5d86f6ef7091dc8ba714d96e4
treece77db4f3a80a97dc6ebfcc597f875e84829eec2
parent54385bf75cc6451f29f3a149582584d5015d2c98
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>
drivers/md/dm-mpath.c