patch-2.4.11-dontuse linux/drivers/s390/block/dasd_3990_erp.c

Next file: linux/drivers/s390/block/dasd_diag.c
Previous file: linux/drivers/s390/block/dasd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.10/linux/drivers/s390/block/dasd_3990_erp.c linux/drivers/s390/block/dasd_3990_erp.c
@@ -1724,8 +1724,16 @@
         dasd_3990_handle_env_data (erp,
                                    sense);
 
-	erp = dasd_3990_erp_action_4 (erp,
-				      sense);
+        /* don't retry on disabled interface */
+        if (sense[7] != 0x0F) {
+
+                erp = dasd_3990_erp_action_4 (erp,
+                                              sense);
+        } else {
+
+                erp = dasd_3990_erp_cleanup (erp,
+                                             CQR_STATUS_IN_IO);
+        }
 
 	return erp;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)