Blame SOURCES/classify-device-connectivity-issues-as-global-errors.patch

aa146a
From 093f1aa2f13cf4d77374ded12161e832196da548 Mon Sep 17 00:00:00 2001
aa146a
From: "Martin K. Petersen" <martin.petersen@oracle.com>
aa146a
Date: Thu, 21 May 2015 17:42:15 -0400
aa146a
Subject: oracleasm: Classify device connectivity issues as global errors
aa146a
aa146a
We used to set the ASM_LOCAL_ERROR qualifier when we got ENOLINK, EBADE
aa146a
or ENODEV status from the storage stack. The assumption was that the
aa146a
error could be caused by a pulled cable or a bad switch port and that
aa146a
other nodes in a cluster might still have access to the storage.
aa146a
aa146a
The ASM team would prefer these types of errors to be treated as global,
aa146a
however, as this would be consistent with database behavior when ASMLIB
aa146a
is not in the picture.
aa146a
aa146a
Remove the ASM_LOCAL_ERROR flag from the device connectivity error code
aa146a
path.
aa146a
aa146a
Orabug: 20117903
aa146a
aa146a
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
aa146a
aa146a
diff --git a/drivers/block/oracleasm/driver.c b/drivers/block/oracleasm/driver.c
aa146a
index 7eb1707..94acab2 100644
aa146a
--- a/drivers/block/oracleasm/driver.c
aa146a
+++ b/drivers/block/oracleasm/driver.c
aa146a
@@ -1176,7 +1176,6 @@ static void asm_end_ioc(struct asm_request *r, unsigned int bytes_done,
aa146a
 		case -EBADE:
aa146a
 		case -ENODEV:
aa146a
 			r->r_error = ASM_ERR_NODEV;
aa146a
-			r->r_status |= ASM_LOCAL_ERROR;
aa146a
 			break;
aa146a
 
aa146a
 		case -ENOMEM:
aa146a
-- 
aa146a
cgit v0.10.2