]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
oracleasm: Classify device connectivity issues as global errors
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 May 2015 21:42:15 +0000 (17:42 -0400)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 29 Jun 2015 15:34:54 +0000 (08:34 -0700)
We used to set the ASM_LOCAL_ERROR qualifier when we got ENOLINK, EBADE
or ENODEV status from the storage stack. The assumption was that the
error could be caused by a pulled cable or a bad switch port and that
other nodes in a cluster might still have access to the storage.

The ASM team would prefer these types of errors to be treated as global,
however, as this would be consistent with database behavior when ASMLIB
is not in the picture.

Remove the ASM_LOCAL_ERROR flag from the device connectivity error code
path.

Orabug: 20117903

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/block/oracleasm/driver.c

index 7eb170784e05fb592d23aa8d65fd2befad4c20ab..94acab23fc914f84d579a5ba1d4bd9b4f02093a8 100644 (file)
@@ -1067,7 +1067,6 @@ static void asm_end_ioc(struct asm_request *r, unsigned int bytes_done,
                case -EBADE:
                case -ENODEV:
                        r->r_error = ASM_ERR_NODEV;
-                       r->r_status |= ASM_LOCAL_ERROR;
                        break;
 
                case -ENOMEM: