]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[S390] cio: handle busy subchannel in ccw_device_move_to_sch
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 7 Dec 2009 11:51:37 +0000 (12:51 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 7 Dec 2009 11:51:32 +0000 (12:51 +0100)
commit0c609fca243d456af014e92ad1caca045072dfe8
tree4e1ef91c88627e2a4af29dc2ff5aba38397e2f0c
parentec64333c3a9bc52e34d79cff23acf4e5764b1353
[S390] cio: handle busy subchannel in ccw_device_move_to_sch

Try to disable the old subchannel before we ask the driver core
to move the attached device to a new parent. This way we can use
the QUIESCE state during shutdown which prevents a possible use
after free situation in some error cases.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c