From: Sebastian Ott Date: Mon, 23 May 2011 08:23:32 +0000 (+0200) Subject: [S390] cio: fix unreg race in set_online path X-Git-Tag: v3.0-rc1~313^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf05098ce34e68a9e15f09ad6cdfea4ed64057a;p=pandora-kernel.git [S390] cio: fix unreg race in set_online path In ccw_device_set_online we basically start path verification and wait for the device to reach a final state. If it turns out that the device has no useable path we schedule the deregistration of the device (which is still in an non-final state) and wake up the waiting process. The deregistration process will set a final state, but if the wake up happens to be prior to this, the device will hang forever in ccw_device_set_online. To fix this just set the final NOT_OPER state prior to the scheduled deregistration of the device. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed