[Devel] [PATCH RHEL7 COMMIT] ploop: kaio: Enter standby mode on EIO as well

Konstantin Khorenko khorenko at virtuozzo.com
Fri Apr 19 18:39:15 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-957.10.1.vz7.94.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.10.1.vz7.94.16
------>
commit 1a7f38dfe634c8a68b4d0d712092812c609e2d62
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Fri Apr 19 18:39:12 2019 +0300

    ploop: kaio: Enter standby mode on EIO as well
    
    vstorage may return EIO on lease loss (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 enter standby mode on EIO too.
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
    Reviewed-by: Andrey Zaitsev <azaitsev 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