rxrpc: Simplify skbuff accounting in receive path
authorDavid Howells <dhowells@redhat.com>
Thu, 6 Oct 2022 14:43:51 +0000 (15:43 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 1 Dec 2022 13:36:41 +0000 (13:36 +0000)
commit2d1faf7a0ca3c0b327cf064c80e4e775532c9319
tree91fd80aa14c25d609dff2acd4c60cbdbd0b66b8b
parent29fb4ec385f18db98d9188c2173a0b07d2de6917
rxrpc: Simplify skbuff accounting in receive path

A received skbuff needs a ref when it gets put on a call data queue or conn
packet queue, and rxrpc_input_packet() and co. jump through a lot of hoops
to avoid double-dropping the skbuff ref so that we can avoid getting a ref
when we queue the packet.

Change this so that the skbuff ref is unconditionally dropped by the caller
of rxrpc_input_packet().  An additional ref is then taken on the packet if
it is pushed onto a queue.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
include/trace/events/rxrpc.h
net/rxrpc/input.c
net/rxrpc/io_thread.c