]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: relax locking for ipato config data
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 23 Sep 2020 08:36:53 +0000 (10:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2020 19:07:54 +0000 (12:07 -0700)
commit49d6372fa8b452b6b16afb9a43ce28599d2acc99
tree5c38128786256f0af6317f53728b3f4e62f2089a
parent7be8ed3189c2bd464b0a598f70b5d248f23d97d0
s390/qeth: relax locking for ipato config data

card->ipato is currently protected by the conf_mutex. But most users
also hold the ip_lock - in particular qeth_l3_add_ip().

So slightly expand the sections under ip_lock in a few places (to
effectively cover a few error & no-op cases), and then drop the
conf_mutex where it's no longer needed.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_l3_main.c
drivers/s390/net/qeth_l3_sys.c