]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: fix possibly missed path verification
authorStefan Haberland <sth@linux.ibm.com>
Wed, 20 Oct 2021 11:51:24 +0000 (13:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 14:10:42 +0000 (08:10 -0600)
commit74e5e5a9dd1b45605d0982c9915284fb00f1d417
treebdb8990ae385ce27572692258955e79071fc3a95
parentd37e4ae0800de85e59628cfd5d94a958fbf03cd9
s390/dasd: fix possibly missed path verification

__dasd_device_check_path_events() calls the discipline path event handler.
This handler can leave the 'to be verified pathmask' populated for an
additional verification.

There is a race window where the worker has finished before
dasd_path_clear_all_verify() is called which resets the tbvpm.

Due to this there could be outstanding path verifications missed.

Fix by clearing the pathmasks before calling the handler and add them
again in case of an error.

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-8-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_int.h