rxrpc: Offload the completion of service conn security to the I/O thread
authorDavid Howells <dhowells@redhat.com>
Fri, 21 Oct 2022 07:54:03 +0000 (08:54 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 6 Jan 2023 09:43:32 +0000 (09:43 +0000)
commit2953d3b8d8fd1188034c54862b74402b0b846695
tree27555cf8965d479e72c0acc0b60528709d213663
parentf06cb29189361353e9ed12df936c8e1d7f69b730
rxrpc: Offload the completion of service conn security to the I/O thread

Offload the completion of the challenge/response cycle on a service
connection to the I/O thread.  After the RESPONSE packet has been
successfully decrypted and verified by the work queue, offloading the
changing of the call states to the I/O thread makes iteration over the
conn's channel list simpler.

Do this by marking the RESPONSE skbuff and putting it onto the receive
queue for the I/O thread to collect.  We put it on the front of the queue
as we've already received the packet for it.

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/ar-internal.h
net/rxrpc/conn_event.c
net/rxrpc/io_thread.c