Messages in this thread Patch in this message | | | Subject | [PATCH net-next 03/32] rxrpc: Simplify rxrpc_implicit_end_call() | From | David Howells <> | Date | Tue, 06 Dec 2022 15:59:01 +0000 |
| |
rxrpc_implicit_end_call() can be simplified a bit as it should call rxrpc_disconnect_call() now that it's being run in process context.
Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org ---
net/rxrpc/input.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c index d0e20e946e48..dbd92f09c2ca 100644 --- a/net/rxrpc/input.c +++ b/net/rxrpc/input.c @@ -998,8 +998,6 @@ void rxrpc_input_call_packet(struct rxrpc_call *call, struct sk_buff *skb) */ void rxrpc_implicit_end_call(struct rxrpc_call *call, struct sk_buff *skb) { - struct rxrpc_connection *conn = call->conn; - switch (READ_ONCE(call->state)) { case RXRPC_CALL_SERVER_AWAIT_ACK: rxrpc_call_completed(call); @@ -1014,8 +1012,5 @@ void rxrpc_implicit_end_call(struct rxrpc_call *call, struct sk_buff *skb) } rxrpc_input_call_event(call, skb); - - spin_lock(&conn->bundle->channel_lock); - __rxrpc_disconnect_call(conn, call); - spin_unlock(&conn->bundle->channel_lock); + rxrpc_disconnect_call(call); }
| |