[patch 7/7] cio: deregister ccw device when pgid disband failed
- From: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
- Date: Thu, 31 May 2007 16:20:31 +0200
From: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>
Deregister ccw device when device failure is detected during offline-
processing (e.g. when no last-path-gone indication was presented by
the hardware) to prevent the device from entering a non-recoverable
not-operational state.
Signed-off-by: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
---
drivers/s390/cio/device_fsm.c | 6 ++++++
1 file changed, 6 insertions(+)
Index: quilt-2.6/drivers/s390/cio/device_fsm.c
===================================================================
--- quilt-2.6.orig/drivers/s390/cio/device_fsm.c
+++ quilt-2.6/drivers/s390/cio/device_fsm.c
@@ -688,6 +688,12 @@ ccw_device_disband_done(struct ccw_devic
ccw_device_done(cdev, DEV_STATE_BOXED);
break;
default:
+ cdev->private->flags.donotify = 0;
+ if (get_device(&cdev->dev)) {
+ PREPARE_WORK(&cdev->private->kick_work,
+ ccw_device_call_sch_unregister);
+ queue_work(ccw_device_work, &cdev->private->kick_work);
+ }
ccw_device_done(cdev, DEV_STATE_NOT_OPER);
break;
}
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [patch 0/7] s390 upstream patches.
- From: Martin Schwidefsky
- [patch 0/7] s390 upstream patches.
- Prev by Date: [patch 3/7] arch/s390/kernel/debug.c: use mutex instead of semaphore
- Next by Date: [patch 5/7] Fix section annotations.
- Previous by thread: [patch 3/7] arch/s390/kernel/debug.c: use mutex instead of semaphore
- Next by thread: [patch 5/7] Fix section annotations.
- Index(es):
Relevant Pages
|
|