Commit 6f8996c8 authored by Stefan Haberland's avatar Stefan Haberland Committed by Zheng Zengkai
Browse files

s390/dasd: fix hanging IO request during DASD driver unbind



stable inclusion
from stable-5.10.24
commit 08bccd721243012b1b45b57907c98e7c0f4557b4
bugzilla: 51348

--------------------------------

commit 66f669a2 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: e443343e ("s390/dasd: blk-mq conversion")

Cc: <stable@vger.kernel.org> # v4.14+
Signed-off-by: default avatarStefan Haberland <sth@linux.ibm.com>
Tested-by: default avatarBjoern Walk <bwalk@linux.ibm.com>
Reviewed-by: default avatarJan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a17c204a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment