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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:09 +0000 (13:40 +0200)
commit76668bdee0b08f5ed6f55323a1db91e2d7f6c790
tree6c72a5b5ecbb8e502a1f981f77388dcc7a205369
parentbcc0c767f9b345f727c4696244494d78d31f5956
s390/qdio: cancel the ESTABLISH ccw after timeout

commit 1c1dc8bda3a05c60877a6649775894db5343bdea upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/cio/qdio_main.c