Ver Fonte

[S390] dasd: log sense for fatal errors

The logging of sense data for fatal errors was accidentally removed
during Hyper PAV implementation.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Stefan Haberland há 16 anos atrás
pai
commit
a9cffb227d
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      drivers/s390/block/dasd.c

+ 5 - 0
drivers/s390/block/dasd.c

@@ -1746,6 +1746,11 @@ restart:
 			goto restart;
 			goto restart;
 		}
 		}
 
 
+		/* log sense for fatal error */
+		if (cqr->status == DASD_CQR_FAILED) {
+			dasd_log_sense(cqr, &cqr->irb);
+		}
+
 		/* First of all call extended error reporting. */
 		/* First of all call extended error reporting. */
 		if (dasd_eer_enabled(base) &&
 		if (dasd_eer_enabled(base) &&
 		    cqr->status == DASD_CQR_FAILED) {
 		    cqr->status == DASD_CQR_FAILED) {