diff options
author | Eric Dumazet <edumazet@google.com> | 2021-11-23 14:56:08 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-24 17:21:42 -0800 |
commit | 627b94f75b82d13d1530b59155a545fd99d807db (patch) | |
tree | 6b0cc9cd576b1c9355b9f1fdf0ab7f3d4ab44e7c /net/8021q | |
parent | fc1ca3348a74a1afaa7ffebc2b2f2cc149e11278 (diff) | |
download | linux-stable-627b94f75b82d13d1530b59155a545fd99d807db.tar.gz linux-stable-627b94f75b82d13d1530b59155a545fd99d807db.tar.bz2 linux-stable-627b94f75b82d13d1530b59155a545fd99d807db.zip |
gro: remove rcu_read_lock/rcu_read_unlock from gro_complete handlers
All gro_complete() handlers are called from napi_gro_complete()
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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c index 534eebb5a2e6..acf8c791f320 100644 --- a/net/8021q/vlan_core.c +++ b/net/8021q/vlan_core.c @@ -513,14 +513,12 @@ static int vlan_gro_complete(struct sk_buff *skb, int nhoff) struct packet_offload *ptype; int err = -ENOENT; - rcu_read_lock(); ptype = gro_find_complete_by_type(type); if (ptype) err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, ipv6_gro_complete, inet_gro_complete, skb, nhoff + sizeof(*vhdr)); - rcu_read_unlock(); return err; } |