kernel_optimize_test/drivers/s390/block
Stefan Haberland 08bccd7212 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: e443343e50 ("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-03-17 17:06:28 +01:00
..
dasd_3990_erp.c
dasd_alias.c
dasd_devmap.c
dasd_diag.c
dasd_diag.h
dasd_eckd.c
dasd_eckd.h
dasd_eer.c
dasd_erp.c
dasd_fba.c
dasd_fba.h
dasd_genhd.c
dasd_int.h
dasd_ioctl.c
dasd_proc.c
dasd.c
dcssblk.c
Kconfig
Makefile
scm_blk.c
scm_blk.h
scm_drv.c
xpram.c