[Devel] [PATCH] ploop: kaio: Enter standby mode also on EIO
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Apr 17 16:26:48 MSK 2019
vstorage may return EIO on lease lose (in addition to EBUSY
and ENOTCONN). It's difficult to make vstorage and fastpath
to return only EBUSY and ENOTCONN in such situations.
So, Andrei suggested to ented standby mode on EIO too.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
drivers/block/ploop/io_kaio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/ploop/io_kaio.c b/drivers/block/ploop/io_kaio.c
index 6882f921d069..5b97ed73611e 100644
--- a/drivers/block/ploop/io_kaio.c
+++ b/drivers/block/ploop/io_kaio.c
@@ -114,7 +114,7 @@ static void check_standby_mode(long res, struct ploop_device *plo) {
int prev;
/* move to standby if delta lease was stolen or mount is gone */
- if (res != -EBUSY && res != -ENOTCONN) {
+ if (res != -EBUSY && res != -ENOTCONN && res != -EIO) {
return;
}
More information about the Devel
mailing list