]> git.itanic.dy.fi Git - linux-stable/commit
s390/dasd: fix hanging device after request requeue
authorStefan Haberland <sth@linux.ibm.com>
Fri, 21 Jul 2023 19:36:46 +0000 (21:36 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Jul 2023 19:05:29 +0000 (13:05 -0600)
commit8a2278ce9c25048d999fe1a3561def75d963f471
tree6b20a04bc53f11f838816236937c227c6bafacde
parentacea28a6b74f458defda7417d2217b051ba7d444
s390/dasd: fix hanging device after request requeue

The DASD device driver has a function to requeue requests to the
blocklayer.
This function is used in various cases when basic settings for the device
have to be changed like High Performance Ficon related parameters or copy
pair settings.

The functions iterates over the device->ccw_queue and also removes the
requests from the block->ccw_queue.
In case the device is started on an alias device instead of the base
device it might be removed from the block->ccw_queue without having it
canceled properly before. This might lead to a hanging device since the
request is no longer on a queue and can not be handled properly.

Fix by iterating over the block->ccw_queue instead of the
device->ccw_queue. This will take care of all blocklayer related requests
and handle them on all associated DASD devices.

Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Link: https://lore.kernel.org/r/20230721193647.3889634-4-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd.c