@@ -716,7 +716,6 @@ enum action {
716
716
ABORT_COMMAND ,
717
717
DEVICE_RESET ,
718
718
BUS_RESET ,
719
- ADAPTER_RESET ,
720
719
};
721
720
722
721
@@ -898,22 +897,9 @@ qla1280_error_action(struct scsi_cmnd *cmd, enum action action)
898
897
}
899
898
break ;
900
899
901
- case ADAPTER_RESET :
902
900
default :
903
- if (qla1280_verbose ) {
904
- printk (KERN_INFO
905
- "scsi(%ld): Issued ADAPTER RESET\n" ,
906
- ha -> host_no );
907
- printk (KERN_INFO "scsi(%ld): I/O processing will "
908
- "continue automatically\n" , ha -> host_no );
909
- }
910
- ha -> flags .reset_active = 1 ;
911
-
912
- if (qla1280_abort_isp (ha ) != 0 ) { /* it's dead */
913
- result = FAILED ;
914
- }
915
-
916
- ha -> flags .reset_active = 0 ;
901
+ dprintk (1 , "RESET invalid action %d\n" , action );
902
+ return FAILED ;
917
903
}
918
904
919
905
/*
@@ -1011,11 +997,27 @@ qla1280_eh_bus_reset(struct scsi_cmnd *cmd)
1011
997
static int
1012
998
qla1280_eh_adapter_reset (struct scsi_cmnd * cmd )
1013
999
{
1014
- int rc ;
1000
+ int rc = SUCCESS ;
1001
+ struct Scsi_Host * shost = cmd -> device -> host ;
1002
+ struct scsi_qla_host * ha = (struct scsi_qla_host * )shost -> hostdata ;
1015
1003
1016
- spin_lock_irq (cmd -> device -> host -> host_lock );
1017
- rc = qla1280_error_action (cmd , ADAPTER_RESET );
1018
- spin_unlock_irq (cmd -> device -> host -> host_lock );
1004
+ spin_lock_irq (shost -> host_lock );
1005
+ if (qla1280_verbose ) {
1006
+ printk (KERN_INFO
1007
+ "scsi(%ld): Issued ADAPTER RESET\n" ,
1008
+ ha -> host_no );
1009
+ printk (KERN_INFO "scsi(%ld): I/O processing will "
1010
+ "continue automatically\n" , ha -> host_no );
1011
+ }
1012
+ ha -> flags .reset_active = 1 ;
1013
+
1014
+ if (qla1280_abort_isp (ha ) != 0 ) { /* it's dead */
1015
+ rc = FAILED ;
1016
+ }
1017
+
1018
+ ha -> flags .reset_active = 0 ;
1019
+
1020
+ spin_unlock_irq (shost -> host_lock );
1019
1021
1020
1022
return rc ;
1021
1023
}
0 commit comments