[PATCH] s390: device recognition

Close a small window where a device may be not operational again after senseid
finished and the "same device" check fails due to dev=0000 by checking for dnv
after stsch() by then setting the device to not operational. (No need to
check for dnv in ccw_device_handle_oper() again since we don't do stsch() into
the subchannel's schib in the meantime and will get a crw anyway if the device
becomes not oper again).

Signed-off-by: Cornelia Huck <cohuck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Cornelia Huck and committed by Linus Torvalds 4ffa9234 350e3ade

+3
+3
drivers/s390/cio/device_fsm.c
··· 235 sch->schib.pmcw.pam & 236 sch->schib.pmcw.pom & 237 sch->opm; 238 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID) 239 /* Force reprobe on all chpids. */ 240 old_lpm = 0;
··· 235 sch->schib.pmcw.pam & 236 sch->schib.pmcw.pom & 237 sch->opm; 238 + /* Check since device may again have become not operational. */ 239 + if (!sch->schib.pmcw.dnv) 240 + state = DEV_STATE_NOT_OPER; 241 if (cdev->private->state == DEV_STATE_DISCONNECTED_SENSE_ID) 242 /* Force reprobe on all chpids. */ 243 old_lpm = 0;