]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] qdio: avoid hang when establishing qdio queues
authorUrsula Braun <braunu@de.ibm.com>
Sat, 9 Feb 2008 17:24:32 +0000 (18:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sat, 9 Feb 2008 17:24:39 +0000 (18:24 +0100)
commit35d1ab3c5b66fd179992a263a328e3bfbe424b3a
tree4d2c70d51edae38b92803f38fa025ee4875e0a34
parent72aee78cd2b623d647f30033b7f7ce230e4b7621
[S390] qdio: avoid hang when establishing qdio queues

If qdio establish runs in parallel with a channel error,
ccw_device_start_timeout may not trigger the qdio_timeout_handler.
In this case neither QDIO_IRQ_STATE_ESTABLISHED nor
QDIO_IRQ_STATE_ERR is reached and the following wait_event hangs
forever.
Solution: do not make use of the timeout option with
ccw_device_start, but add a timeout to the following wait_event.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio.c