Skip to content

Commit 959153d

Browse files
Jan GlauberMartin Schwidefsky
authored andcommitted
[S390] qdio: prevent call trace if CHPID is offline
If a CHPID is offline during a device shutdown the ccw_device_halt|clear may fail and the qdio device stays in state STOPPED until the shutdown is finished. If an interrupt occurs before the device is set to INACTIVE the STOPPED state triggers a WARN_ON in the interrupt handler. Prevent this WARN_ON by catching the STOPPED state in the interrupt handler. Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 4c52228 commit 959153d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/s390/cio/qdio_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,8 @@ void qdio_int_handler(struct ccw_device *cdev, unsigned long intparm,
960960
qdio_handle_activate_check(cdev, intparm, cstat,
961961
dstat);
962962
break;
963+
case QDIO_IRQ_STATE_STOPPED:
964+
break;
963965
default:
964966
WARN_ON(1);
965967
}

0 commit comments

Comments
 (0)