]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:41:47 +0000 (13:41 +0200)
commitc1597055ec6abe3a159efc2927f6c855f65cb9fa
tree8f6cc327567d3eaba4f8dd42ceddecc9bd8b477f
parent50922950663ee08f02e3454bfb0f7867e46f54e0
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