[Devel] [PATCH RH9] dm-ploop: Return BLK_STS_RESOURCE on ENOMEM instead of BLK_STS_IOERR
Kirill Tkhai
ktkhai at virtuozzo.com
Mon Feb 7 16:48:06 MSK 2022
https://jira.sw.ru/browse/PSBM-138444
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/md/dm-ploop-map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index e3ef1b49aad80..009b3f0e390df 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1624,7 +1624,7 @@ static void prepare_one_embedded_pio(struct ploop *ploop, struct pio *pio,
return;
err_nomem:
- pio->bi_status = BLK_STS_IOERR;
+ pio->bi_status = BLK_STS_RESOURCE;
pio_endio(pio);
}
More information about the Devel
mailing list