rxrpc: The client call state must be changed before attachment to conn
authorDavid Howells <dhowells@redhat.com>
Sun, 4 Sep 2016 12:10:10 +0000 (13:10 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 4 Sep 2016 12:10:10 +0000 (13:10 +0100)
commitaf338a9ea60acc6337fe9fcdcf664aec2520e541
tree5d7883b1d7cee050b782c540b7cee933adb12dd5
parent00b5407e427ac2588a2496b92035a94602b3cd1b
rxrpc: The client call state must be changed before attachment to conn

We must set the client call state to RXRPC_CALL_CLIENT_SEND_REQUEST before
attaching the call to the connection struct, not after, as it's liable to
receive errors and conn aborts as soon as the assignment is made - and
these will cause its state to be changed outside of the initiating thread's
control.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/call_object.c
net/rxrpc/conn_client.c