]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] dasd: fix unsolicited SIM handling.
authorStefan Haberland <stefan.haberland@de.ibm.com>
Thu, 17 Jul 2008 15:16:41 +0000 (17:16 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Jul 2008 15:22:08 +0000 (17:22 +0200)
Add missing schedule_bh and check that there is 32 bit sense data.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c

index e0b77210d37a5b95f15b707c39baf42397396ba2..3590fdb5b2fda56ce9e5df1a22f1b59966be7af8 100644 (file)
@@ -1418,8 +1418,10 @@ static void dasd_eckd_handle_unsolicited_interrupt(struct dasd_device *device,
 
 
        /* service information message SIM */
-       if ((irb->ecw[6] & DASD_SIM_SENSE) == DASD_SIM_SENSE) {
+       if (irb->esw.esw0.erw.cons && (irb->ecw[27] & DASD_SENSE_BIT_0) &&
+           ((irb->ecw[6] & DASD_SIM_SENSE) == DASD_SIM_SENSE)) {
                dasd_3990_erp_handle_sim(device, irb->ecw);
+               dasd_schedule_device_bh(device);
                return;
        }