[PATCH] s390: fix endless retry loop in tape driver
authorMichael Holzheu <holzheu@de.ibm.com>
Fri, 24 Mar 2006 11:15:28 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:18 +0000 (07:33 -0800)
commit5f38433885245dce82aa53c20a6b2efbe81ae350
tree1731a5e3b9092f3ff060ac6aa652be8ec6dde890
parent4cd190a736a97e302c038bd91357d636369d4c6b
[PATCH] s390: fix endless retry loop in tape driver

If a tape device is assigned to another host, the interrupt for the assign
operation comes back with deferred condition code 1.  Under some conditions
this can lead to an endless loop of retries.  Check if the current request is
still in IO in deferred condition code handling and prevent retries when the
request has already been cancelled.

Signed-off-by: Michael Holzheu <holzheu@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>
drivers/s390/char/tape.h
drivers/s390/char/tape_core.c
drivers/s390/char/tape_std.c