mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
vsock: remove dev_hold() and dev_put() in __vsock_deliver_tap_skb()
__vsock_deliver_tap_skb() is called from vsock_deliver_tap() under rcu_read_lock(). dev_queue_xmit() does not require the caller to hold a device reference count, and the device lifetime is already protected by RCU. Remove the redundant dev_hold(dev) and dev_put(dev) calls. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Bobby Eshleman <bobbyeshleman@meta.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://patch.msgid.link/20260921094218.483234-1-edumazet@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
eabc76156e
commit
6598456d72
1 changed files with 0 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue