]> git.itanic.dy.fi Git - linux-stable/commit
s390/dasd: fix missing path conf_data after failed allocation
authorStefan Haberland <sth@linux.ibm.com>
Wed, 20 Oct 2021 11:51:23 +0000 (13:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:10:42 +0000 (08:10 -0600)
commit9dffede0115e96d0ff0a07e4382569a9c6dba735
tree5321ee0a90e9066093deb356f1ef0b5090f7943c
parent542e30ce8e6e1104e99c78a520a821b05b6ea98b
s390/dasd: fix missing path conf_data after failed allocation

dasd_eckd_path_available_action() does a memory allocation to store
the per path configuration data permanently.
In the unlikely case that this allocation fails there is no conf_data
stored for the corresponding path.

This is OK since this is not necessary for an operational path but some
features like control unit initiated reconfiguration (CUIR) do not work.

To fix this add the path to the 'to be verified pathmask' again and
schedule the handler again.

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