summaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2021-01-07 18:24:41 +0100
committerJakub Kicinski <kuba@kernel.org>2021-01-07 18:54:06 -0800
commitb41b554c1ee75070a14c02a88496b1f231c7eacc (patch)
tree640acf6ee4ddeb467d832a99b68242f35deaa7ae /drivers/s390/scsi
parent0b9902c1fcc59ba75268386c0420a554f8844168 (diff)
downloadlinux-b41b554c1ee75070a14c02a88496b1f231c7eacc.tar.bz2
s390/qeth: fix locking for discipline setup / removal
Due to insufficient locking, qeth_core_set_online() and qeth_dev_layer2_store() can run in parallel, both attempting to load & setup the discipline (and stepping on each other toes along the way). A similar race can also occur between qeth_core_remove_device() and qeth_dev_layer2_store(). Access to .discipline is meant to be protected by the discipline_mutex, so add/expand the locking in qeth_core_remove_device() and qeth_core_set_online(). Adjust the locking in qeth_l*_remove_device() accordingly, as it's now handled by the callers in a consistent manner. Based on an initial patch by Ursula Braun. Fixes: 9dc48ccc68b9 ("qeth: serialize sysfs-triggered device configurations") Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Reviewed-by: Alexandra Winter <wintera@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/s390/scsi')
0 files changed, 0 insertions, 0 deletions