[PATCH] s390: dasd wait for clear i/o interrupt
authorHorst Hummel <horst.hummel@de.ibm.com>
Wed, 1 Feb 2006 11:06:37 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:24 +0000 (08:53 -0800)
commitc2ba444d1d871d3f6cd3bc5e7d8e19c48c8c02a4
tree668b3251195ee98521d1ef6a3f55f4d6f45e3126
parent57467195d1581e354998d5cc35dfd7a12d6e0a24
[PATCH] s390: dasd wait for clear i/o interrupt

The sleep_on function clears a running cqr without waiting for the related
interrupt.  This can lead to a panic at the time the interrupt is processed
because the related memory might already be freed.  Wait for clear-interrupt
and de-queue cqr prior to return.

Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/block/dasd.c