[Devel] [PATCH RHEL9 COMMIT] dm-ploop: Return BLK_STS_RESOURCE on ENOMEM instead of BLK_STS_IOERR
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Feb 9 13:09:56 MSK 2022
The commit is pushed to "branch-rh9-5.14.0-4.vz9.12.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.12.6
------>
commit 56ca9492c51d7de2356a80e621bbb86fdc50c789
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Wed Feb 9 13:09:56 2022 +0300
dm-ploop: Return BLK_STS_RESOURCE on ENOMEM instead of BLK_STS_IOERR
https://jira.sw.ru/browse/PSBM-138444
Fixes: bd55323d4bca ("dm-ploop: Add ploop target driver")
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 e3ef1b49aad8..009b3f0e390d 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