]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'udp-fwd-mem-sched-on-dequeue'
authorDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2016 18:24:42 +0000 (13:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2016 18:24:42 +0000 (13:24 -0500)
commite6d50954a17d80893494489776ee731f5fc3ec94
treeb6e4dd83dcf3ac82c3d7517b035583b44cc9f655
parent425faa8556efcdb55dc5c7a22ecd3d5d62afca6b
parentab6926eb08616c5d2f32bbfb3fb314ce63891f09
Merge branch 'udp-fwd-mem-sched-on-dequeue'

Paolo Abeni says:

====================
udp: do fwd memory scheduling on dequeue

After commit 85f287938f7f ("udp: use it's own memory accounting schema"),
the udp code needs to acquire twice the receive queue spinlock on dequeue.

This patch series remove the need for the second lock at skb free time,
moving the udp memory scheduling inside the dequeue operation; the skb
destructor field is not used anymore and an additional sk argument is added
to ip_cmsg_recv_offset() to cope with null skb->sk after dequeue.

Many thanks to Eric Dumazed for suggesting pretty all much the above.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>