Skip to content

Commit ec763c2

Browse files
q2venPaolo Abeni
authored and
Paolo Abeni
committed
Revert "rtnetlink: add guard for RTNL"
This reverts commit 464eb03. Once we have a per-netns RTNL, we won't use guard(rtnl). Also, there's no users for now. $ grep -rnI "guard(rtnl" || true $ Suggested-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/netdev/CANn89i+KoYzUH+VPLdGmLABYf5y4TW0hrM4UAeQQJ9AREty0iw@mail.gmail.com/ Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent f178812 commit ec763c2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/linux/rtnetlink.h

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <linux/netdevice.h>
88
#include <linux/wait.h>
99
#include <linux/refcount.h>
10-
#include <linux/cleanup.h>
1110
#include <uapi/linux/rtnetlink.h>
1211

1312
extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo);
@@ -47,8 +46,6 @@ extern int rtnl_is_locked(void);
4746
extern int rtnl_lock_killable(void);
4847
extern bool refcount_dec_and_rtnl_lock(refcount_t *r);
4948

50-
DEFINE_LOCK_GUARD_0(rtnl, rtnl_lock(), rtnl_unlock())
51-
5249
extern wait_queue_head_t netdev_unregistering_wq;
5350
extern atomic_t dev_unreg_count;
5451
extern struct rw_semaphore pernet_ops_rwsem;

0 commit comments

Comments
 (0)