rxrpc: Make the local endpoint hold a ref on a connected call
authorDavid Howells <dhowells@redhat.com>
Wed, 2 Nov 2022 10:24:29 +0000 (10:24 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 6 Jan 2023 09:43:31 +0000 (09:43 +0000)
commit5040011d073d3acdeb58af2b64f84e33bb03abd2
treeaa47e8d358ebdca47622004f7d1c60e6d6064fa9
parent8a758d98dba380a7d32a98b0840ad707e3036233
rxrpc: Make the local endpoint hold a ref on a connected call

Make the local endpoint and it's I/O thread hold a reference on a connected
call until that call is disconnected.  Without this, we're reliant on
either the AF_RXRPC socket to hold a ref (which is dropped when the call is
released) or a queued work item to hold a ref (the work item is being
replaced with the I/O thread).

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/call_object.c
net/rxrpc/conn_client.c
net/rxrpc/conn_object.c