Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "rtnetlink: add guard for RTNL"

This reverts commit 464eb03c4a7cfb32cb3324249193cf6bb5b35152.

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>

authored by

Kuniyuki Iwashima and committed by
Paolo Abeni
ec763c23 f178812d

-3
-3
include/linux/rtnetlink.h
··· 7 7 #include <linux/netdevice.h> 8 8 #include <linux/wait.h> 9 9 #include <linux/refcount.h> 10 - #include <linux/cleanup.h> 11 10 #include <uapi/linux/rtnetlink.h> 12 11 13 12 extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo); ··· 45 46 extern int rtnl_is_locked(void); 46 47 extern int rtnl_lock_killable(void); 47 48 extern bool refcount_dec_and_rtnl_lock(refcount_t *r); 48 - 49 - DEFINE_LOCK_GUARD_0(rtnl, rtnl_lock(), rtnl_unlock()) 50 49 51 50 extern wait_queue_head_t netdev_unregistering_wq; 52 51 extern atomic_t dev_unreg_count;