summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_core_main.c
diff options
context:
space:
mode:
authorJulian Wiedmann2019-03-28 16:39:20 +0100
committerDavid S. Miller2019-03-28 20:57:23 +0100
commit5c0aebc6db8cf81c5dd888388dcb455beb1a87b8 (patch)
treea0e4cc11564301962f66f9604d1fe8446f6ab463 /drivers/s390/net/qeth_core_main.c
parents390/qeth: defer RX modesetting (diff)
downloadkernel-qcow2-linux-5c0aebc6db8cf81c5dd888388dcb455beb1a87b8.tar.gz
kernel-qcow2-linux-5c0aebc6db8cf81c5dd888388dcb455beb1a87b8.tar.xz
kernel-qcow2-linux-5c0aebc6db8cf81c5dd888388dcb455beb1a87b8.zip
s390/qeth: remove locking for RX modeset cache
The L2 and L3 .ndo_set_rx_mode callbacks maintain an address cache to decide which addresses have changed since the last modeset. When the card is set offline, qeth_l?_stop_card() drains this cache. This happens only after 1) the net_device has been detached, and 2) any pending RX modeset has completed. Consequently we can access the cache lock-free. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_main.c')
-rw-r--r--drivers/s390/net/qeth_core_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 44bd6f04c145..717ca21dabde 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -1409,7 +1409,6 @@ static void qeth_setup_card(struct qeth_card *card)
card->info.type = CARD_RDEV(card)->id.driver_info;
card->state = CARD_STATE_DOWN;
- spin_lock_init(&card->mclock);
spin_lock_init(&card->lock);
spin_lock_init(&card->ip_lock);
spin_lock_init(&card->thread_mask_lock);