TencentOS-kernel/drivers/s390
Stefan Haberland bd2a1b65b2 s390/dasd: fix hanging IO request during DASD driver unbind
commit 66f669a272898feb1c69b770e1504aa2ec7723d1 upstream.

Prevent that an IO request is build during device shutdown initiated by
a driver unbind. This request will never be able to be processed or
canceled and will hang forever. This will lead also to a hanging unbind.

Fix by checking not only if the device is in READY state but also check
that there is no device offline initiated before building a new IO request.

Fixes: e443343e509a ("s390/dasd: blk-mq conversion")

Cc: <stable@vger.kernel.org> # v4.14+
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Tested-by: Bjoern Walk <bwalk@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-12 12:53:06 +08:00
..
block s390/dasd: fix hanging IO request during DASD driver unbind 2021-04-12 12:53:06 +08:00
char Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cio s390/cio: return -EFAULT if copy_to_user() fails 2021-04-12 12:53:00 +08:00
crypto s390/crypto: return -EFAULT if copy_to_user() fails 2021-04-12 12:53:01 +08:00
net s390/qeth: fix L2 header access in qeth_l3_osa_features_check() 2021-04-12 12:51:16 +08:00
scsi scsi: zfcp: Fix use-after-free in request timeout handlers 2021-03-16 16:34:30 +08:00
virtio virtio/s390: implement virtio-ccw revision 2 correctly 2021-04-12 12:52:40 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00