]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
udp: keep the sk_receive_queue held when splicing
authorPaolo Abeni <pabeni@redhat.com>
Tue, 16 May 2017 09:20:15 +0000 (11:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 19:41:30 +0000 (15:41 -0400)
commit6dfb4367cd911d2b03878fffa045d545ba4507f6
treed69a117f59aeb3a96f42f6b452b471becfa9d803
parent2276f58ac5890e58d2b6a48b95493faff7347e3a
udp: keep the sk_receive_queue held when splicing

On packet reception, when we are forced to splice the
sk_receive_queue, we can keep the related lock held, so
that we can avoid re-acquiring it, if fwd memory
scheduling is required.

v1 -> v2:
  the rx_queue_lock_held param in udp_rmem_release() is
  now a bool

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c