Skip to contentSkip to conversation

PATCH [6/8] qla2xxx: Small enhancements

PATCH Andrew Vasquez 2 participants 2 messages Sep 7, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

ChangeSet
1.1876 04/09/06 11:57:40 [email protected] +4 -0 Misc. small enhancements:

o Add 're-scan' and 'initiate lip' support via /proc similar to the 7.x series drivers.
o Add module parameter ql2xprocessnotready, to selectively enable/disable the driver's internal NOT_READY check- condition handling.

 drivers/scsi/qla2xxx/qla_def.h |    1 
 drivers/scsi/qla2xxx/qla_gbl.h |    1 
 drivers/scsi/qla2xxx/qla_isr.c |    6 +++++
 drivers/scsi/qla2xxx/qla_os.c  |   44 ++++++++++++++++++++++++++++++++++++++++-
 4 files changed, 51 insertions(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_def.h +1 -0
diff -Nru a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
@@ -2105,6 +2105,7 @@
 #define FCPORT_RESCAN_NEEDED	21      /* IO descriptor processing needed */
 #define IODESC_PROCESS_NEEDED	22      /* IO descriptor processing needed */
 #define IOCTL_ERROR_RECOVERY	23      
+#define LOOP_RESET_NEEDED	24
 
 	uint32_t	device_flags;
 #define DFLG_LOCAL_DEVICES		BIT_0
drivers/scsi/qla2xxx/qla_gbl.h +1 -0
diff -Nru a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
@@ -69,6 +69,7 @@
 extern int ql2xenablezio;
 extern int ql2xintrdelaytimer;
 extern int ql2xloginretrycount;
+extern int ql2xprocessnotready;
 
 extern int ConfigRequired;
 
drivers/scsi/qla2xxx/qla_isr.c +6 -0
diff -Nru a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
@@ -1427,6 +1427,12 @@
 		break;
 
 	case NOT_READY:
+		if (!ql2xprocessnotready) {
+			DEBUG2(printk("%s : Disabled NOT_READY handling...\n",
+			    __func__));		
+			break;
+		}
+
 		fcport = lq->fclun->fcport;
 
 		/*
drivers/scsi/qla2xxx/qla_os.c +43 -1

68 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · Andrew Vasquez

ChangeSet
1.1876 04/09/06 11:57:40 [email protected] +4 -0 Misc. small enhancements:

o Add 're-scan' and 'initiate lip' support via /proc similar to the 7.x series drivers.

procfs support is deprecated, any new procfs invofmration is explicitly vetoed. These changes need to go into sysfs, please try to work with emulex to get these attributes into the fc transport class.