]> git.baikalelectronics.ru Git - kernel.git/commit
[RTNETLINK]: Fix bogus ASSERT_RTNL warning
authorPatrick McHardy <kaber@trash.net>
Thu, 24 Apr 2008 05:10:48 +0000 (22:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 05:10:48 +0000 (22:10 -0700)
commit20a081ec93e9710243df6f5a626f953c05107fb5
treedeace0019cbe1600d94e0de85791faa5eb14358e
parent8fb42f082521b1eed6ce970257c9a4ffe7a99e7b
[RTNETLINK]: Fix bogus ASSERT_RTNL warning

ASSERT_RTNL uses mutex_trylock to test whether the rtnl_mutex is
held. This bogus warnings when running in atomic context, which
f.e. happens when adding secondary unicast addresses through
macvlan or vlan or when synchronizing multicast addresses from
wireless devices.

Mid-term we might want to consider moving all address updates
to process context since the locking seems overly complicated,
for now just fix the bogus warning by changing ASSERT_RTNL to
use mutex_is_locked().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rtnetlink.h
net/core/rtnetlink.c