diff options
author | Patrick McHardy <kaber@trash.net> | 2007-04-20 17:14:21 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:03 -0400 |
commit | af65bdfce98d7965fbe93a48b8128444a2eea024 (patch) | |
tree | e6ac5ff82a0d5067213135cdf049b912b02e824d /net/core | |
parent | b076deb8498e26c9aa2f44046fe5e9936ae2fb5a (diff) |
[NETLINK]: Switch cb_lock spinlock to mutex and allow to override it
Switch cb_lock to mutex and allow netlink kernel users to override it
with a subsystem specific mutex for consistent locking in dump callbacks.
All netlink_dump_start users have been audited not to rely on any
side-effects of the previously used spinlock.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 5266df337051..648a7b6d15df 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -972,7 +972,7 @@ void __init rtnetlink_init(void) | |||
972 | panic("rtnetlink_init: cannot allocate rta_buf\n"); | 972 | panic("rtnetlink_init: cannot allocate rta_buf\n"); |
973 | 973 | ||
974 | rtnl = netlink_kernel_create(NETLINK_ROUTE, RTNLGRP_MAX, rtnetlink_rcv, | 974 | rtnl = netlink_kernel_create(NETLINK_ROUTE, RTNLGRP_MAX, rtnetlink_rcv, |
975 | THIS_MODULE); | 975 | NULL, THIS_MODULE); |
976 | if (rtnl == NULL) | 976 | if (rtnl == NULL) |
977 | panic("rtnetlink_init: cannot initialize rtnetlink\n"); | 977 | panic("rtnetlink_init: cannot initialize rtnetlink\n"); |
978 | netlink_set_nonroot(NETLINK_ROUTE, NL_NONROOT_RECV); | 978 | netlink_set_nonroot(NETLINK_ROUTE, NL_NONROOT_RECV); |