rxrpc: Move the call completion handling out of line

Move the handling of call completion out of line so that the next patch can
add more code in that area.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
This commit is contained in:
David Howells
2020-06-03 22:21:16 +01:00
parent bdc48fa11e
commit 3067bf8c59
3 changed files with 103 additions and 98 deletions

View File

@@ -261,10 +261,10 @@ static int rxrpc_queue_packet(struct rxrpc_sock *rx, struct rxrpc_call *call,
case -ENETUNREACH:
case -EHOSTUNREACH:
case -ECONNREFUSED:
rxrpc_set_call_completion(call,
RXRPC_CALL_LOCAL_ERROR,
0, ret);
rxrpc_notify_socket(call);
if (rxrpc_set_call_completion(call,
RXRPC_CALL_LOCAL_ERROR,
0, ret))
rxrpc_notify_socket(call);
goto out;
}
_debug("need instant resend %d", ret);