Files
linux/include/linux
Sabrina Dubroca 952fcfd08c net: remove type_check from dev_get_nest_level()
The idea for type_check in dev_get_nest_level() was to count the number
of nested devices of the same type (currently, only macvlan or vlan
devices).
This prevented the false positive lockdep warning on configurations such
as:

eth0 <--- macvlan0 <--- vlan0 <--- macvlan1

However, this doesn't prevent a warning on a configuration such as:

eth0 <--- macvlan0 <--- vlan0
eth1 <--- vlan1 <--- macvlan1

In this case, all the locks end up with a nesting subclass of 1, so
lockdep thinks that there is still a deadlock:

- in the first case we have (macvlan_netdev_addr_lock_key, 1) and then
  take (vlan_netdev_xmit_lock_key, 1)
- in the second case, we have (vlan_netdev_xmit_lock_key, 1) and then
  take (macvlan_netdev_addr_lock_key, 1)

By removing the linktype check in dev_get_nest_level() and always
incrementing the nesting depth, lockdep considers this configuration
valid.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-13 15:15:54 -07:00
..
2016-07-04 17:19:22 +05:30
2016-07-25 11:47:52 +01:00
2016-07-04 08:19:21 -07:00
2016-07-01 16:30:38 -04:00
2016-06-25 09:04:48 -07:00
2016-08-02 19:35:24 -04:00
2016-07-26 16:19:19 -07:00
2016-07-24 16:36:29 -04:00
2016-06-27 12:26:08 -07:00
2016-07-22 09:07:02 +02:00
2016-06-21 09:38:45 +10:00
2016-08-02 19:35:44 -04:00
2016-06-24 10:40:41 -05:00
2016-07-29 12:17:52 -07:00
2016-07-12 19:25:38 -07:00
2016-07-01 05:32:17 -04:00
2016-07-28 16:07:41 -07:00
2016-07-12 19:25:38 -07:00
2016-06-23 18:37:05 +02:00
2016-07-06 10:51:14 +01:00
2016-07-26 16:19:19 -07:00
2016-06-14 10:54:40 -07:00
2016-07-26 16:19:19 -07:00
2016-06-20 12:47:15 -07:00
2016-07-19 17:43:38 +03:00
2016-07-26 16:19:19 -07:00
2016-06-25 09:04:48 -07:00