Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bart Van Assche and committed by
Mike Snitzer
68515cc7 54385bf7

-1
-1
drivers/md/dm-mpath.c
··· 1458 1458 case BLK_STS_TARGET: 1459 1459 case BLK_STS_NEXUS: 1460 1460 case BLK_STS_MEDIUM: 1461 - case BLK_STS_RESOURCE: 1462 1461 return 1; 1463 1462 } 1464 1463