diff options
author | Eric Dumazet <edumazet@google.com> | 2021-11-24 01:56:07 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-25 04:21:42 +0300 |
commit | fc1ca3348a74a1afaa7ffebc2b2f2cc149e11278 (patch) | |
tree | f3a16dc7567519f4257f4caf884d4ab770f0bf92 /net/8021q | |
parent | 1aad9634b94ef65d72110a6fc6625c890db9667c (diff) | |
download | linux-fc1ca3348a74a1afaa7ffebc2b2f2cc149e11278.tar.xz |
gro: remove rcu_read_lock/rcu_read_unlock from gro_receive handlers
All gro_receive() handlers are called from dev_gro_receive()
while rcu_read_lock() has been called.
There is no point stacking more rcu_read_lock()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c index 59bc13b5f14f..534eebb5a2e6 100644 --- a/net/8021q/vlan_core.c +++ b/net/8021q/vlan_core.c @@ -476,10 +476,9 @@ static struct sk_buff *vlan_gro_receive(struct list_head *head, type = vhdr->h_vlan_encapsulated_proto; - rcu_read_lock(); ptype = gro_find_receive_by_type(type); if (!ptype) - goto out_unlock; + goto out; flush = 0; @@ -501,8 +500,6 @@ static struct sk_buff *vlan_gro_receive(struct list_head *head, ipv6_gro_receive, inet_gro_receive, head, skb); -out_unlock: - rcu_read_unlock(); out: skb_gro_flush_final(skb, pp, flush); |