mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
[S390] cio: fix not oper handling after failed [on|off]line processing
If online/offline processing of a ccw device fails, resulting in not operational state, notify the driver and unregister the device in case the driver dosn't want to keep it. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
1da73bc80b
commit
626e476ae0
@ -394,6 +394,13 @@ ccw_device_done(struct ccw_device *cdev, int state)
|
||||
ccw_device_schedule_sch_unregister(cdev);
|
||||
cdev->private->flags.donotify = 0;
|
||||
}
|
||||
if (state == DEV_STATE_NOT_OPER) {
|
||||
CIO_MSG_EVENT(0, "Device %04x gone on subchannel %04x\n",
|
||||
cdev->private->dev_id.devno, sch->schid.sch_no);
|
||||
if (!ccw_device_notify(cdev, CIO_GONE))
|
||||
ccw_device_schedule_sch_unregister(cdev);
|
||||
cdev->private->flags.donotify = 0;
|
||||
}
|
||||
|
||||
if (cdev->private->flags.donotify) {
|
||||
cdev->private->flags.donotify = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user