rxrpc: Wrap accesses to get call state to put the barrier in one place
Wrap accesses to get the state of a call from outside of the I/O thread in
a single place so that the barrier needed to order wrt the error code and
abort code is in just that place.
Also use a barrier when setting the call state and again when reading the
call state such that the auxiliary completion info (error code, abort code)
can be read without taking a read lock on the call state lock.
Signed-off-by:
David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Showing
- net/rxrpc/af_rxrpc.c 1 addition, 1 deletionnet/rxrpc/af_rxrpc.c
- net/rxrpc/ar-internal.h 16 additions, 0 deletionsnet/rxrpc/ar-internal.h
- net/rxrpc/call_state.c 2 additions, 1 deletionnet/rxrpc/call_state.c
- net/rxrpc/recvmsg.c 6 additions, 6 deletionsnet/rxrpc/recvmsg.c
- net/rxrpc/sendmsg.c 13 additions, 16 deletionsnet/rxrpc/sendmsg.c
Loading
Please register or sign in to comment