]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce netif_addr_lock_nested() and call if when appropriate
authorJiri Pirko <jpirko@redhat.com>
Mon, 9 Jan 2012 06:36:54 +0000 (06:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2012 20:46:58 +0000 (12:46 -0800)
commit530d45c03ebad53af0feb13247e0554384216597
tree15e0fd0c42f6e10ede9f1cf84553c2a01e593d81
parentab95e7c07e0192c80d7100fa1e182bbda1f70d4b
net: introduce netif_addr_lock_nested() and call if when appropriate

dev_uc_sync() and dev_mc_sync() are acquiring netif_addr_lock for
destination device of synchronization. Since netif_addr_lock is
already held at the time for source device, this triggers lockdep
deadlock warning.

There's no way this deadlock can happen so use spin_lock_nested() to
silence the warning.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev_addr_lists.c