s390/qdio: cancel the ESTABLISH ccw after timeout
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 31 May 2021 15:33:02 +0000 (18:33 +0300)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 27 Jul 2021 07:39:18 +0000 (09:39 +0200)
commit1c1dc8bda3a05c60877a6649775894db5343bdea
treeec990abd9622c61e26b3320c11d4386d183103a9
parent2c197870e4701610ec3b1143808d4e31152caf30
s390/qdio: cancel the ESTABLISH ccw after timeout

When the ESTABLISH ccw does not complete within the specified timeout,
try our best to cancel the ccw program that is still active on the
device. Otherwise the IO subsystem might be accessing it even after
the driver eg. called qdio_free().

Fixes: 779e6e1c724d ("[S390] qdio: new qdio driver.")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Cc: <stable@vger.kernel.org> # 2.6.27
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/qdio_main.c