]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] cio: Only register ccw_device for registered subchannel.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 25 Dec 2008 12:39:08 +0000 (13:39 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Dec 2008 12:39:08 +0000 (13:39 +0100)
commit5fb6b8544d9ccd2ed478af777f9e99e342eb8886
tree21d3819588970ea7e0421d79df088332fcadbb17
parent6eff208f479d6fe99fd92c0e6bf7e930bb45cd30
[S390] cio: Only register ccw_device for registered subchannel.

There is a race between io_subchannel_register() and
io_subchannel_sch_event() which may cause a subchannel to be
unregistered because it is no longer operational before
io_subchannel_register() had run. We need to check whether the
subchannel is still registered before the ccw device can be
registered and just bail out if it is not.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c