projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b80dce
)
scsi_dh_alua: improved logging
author
Hannes Reinecke
<
[email protected]
>
Tue, 1 Dec 2015 09:16:45 +0000
(10:16 +0100)
committer
Martin K. Petersen
<
[email protected]
>
Wed, 2 Dec 2015 21:32:49 +0000
(16:32 -0500)
Issue different logging messages if ALUA is not supported
or the TPGS setting is invalid.
Signed-off-by: Hannes Reinecke <
[email protected]
>
Reviewed-by: Martin K. Petersen <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Reviewed-by: Johannes Thumshirn <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/device_handler/scsi_dh_alua.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/device_handler/scsi_dh_alua.c
b/drivers/scsi/device_handler/scsi_dh_alua.c
index 87c5ba86aff2a5813544577f104de80315ccd9ad..31a971f35d831826295d9d525ffe4c0f4455a78e 100644
(file)
--- a/
drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/
drivers/scsi/device_handler/scsi_dh_alua.c
@@
-310,12
+310,18
@@
static int alua_check_tpgs(struct scsi_device *sdev, struct alua_dh_data *h)
sdev_printk(KERN_INFO, sdev, "%s: supports implicit TPGS\n",
ALUA_DH_NAME);
break;
- default:
- h->tpgs = TPGS_MODE_NONE;
+ case TPGS_MODE_NONE:
sdev_printk(KERN_INFO, sdev, "%s: not supported\n",
ALUA_DH_NAME);
err = SCSI_DH_DEV_UNSUPP;
break;
+ default:
+ sdev_printk(KERN_INFO, sdev,
+ "%s: unsupported TPGS setting %d\n",
+ ALUA_DH_NAME, h->tpgs);
+ h->tpgs = TPGS_MODE_NONE;
+ err = SCSI_DH_DEV_UNSUPP;
+ break;
}
return err;