[PATCH] rdac: Always fail paths when controller reports unavailable AAS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The RDAC checker should always fail paths that report they are unavailable.
Previously, it only failed paths where the controller was in service mode, but 
in any case that reports an AAS of unavailable, the controller should not be 
used to service I/O.

Signed-off-by: Sean Stewart <Sean.Stewart@xxxxxxxxxx>
---
diff --git a/libmultipath/checkers/rdac.c b/libmultipath/checkers/rdac.c
index 2e64dd3..b447c72 100644
--- a/libmultipath/checkers/rdac.c
+++ b/libmultipath/checkers/rdac.c
@@ -222,10 +222,9 @@ libcheck_check (struct checker * c)
 		goto done;
 	}
 
-	/* check if controller is in service mode */
+	/* check if controller is reporting asymmetric access state of unavailable */
 	if ((inq.avtcvp & 0x10) &&
-	    ((inq.asym_access_state_cur & 0x0F) == 0x3) &&
-	    (inq.vendor_specific_cur == 0x7)) {
+	    ((inq.asym_access_state_cur & 0x0F) == 0x3))
 		ret = PATH_DOWN;
 		goto done;
 	}
--

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux