diff options
author | David Howells <dhowells@redhat.com> | 2022-10-12 23:06:52 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-01-31 17:38:07 +0100 |
commit | 223f59016fa2b6d01814dc53ace1c146857ba236 (patch) | |
tree | e46db502097486f5593ece74ba4725f1de772703 /net/rxrpc/call_object.c | |
parent | rxrpc: Shrink the tabulation in the rxrpc trace header a bit (diff) | |
download | linux-223f59016fa2b6d01814dc53ace1c146857ba236.tar.xz linux-223f59016fa2b6d01814dc53ace1c146857ba236.zip |
rxrpc: Convert call->recvmsg_lock to a spinlock
Convert call->recvmsg_lock to a spinlock as it's only ever write-locked.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Diffstat (limited to 'net/rxrpc/call_object.c')
-rw-r--r-- | net/rxrpc/call_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c index f3c9f0201c15..0012589f2aad 100644 --- a/net/rxrpc/call_object.c +++ b/net/rxrpc/call_object.c @@ -560,7 +560,7 @@ void rxrpc_release_call(struct rxrpc_sock *rx, struct rxrpc_call *call) rxrpc_put_call_slot(call); /* Make sure we don't get any more notifications */ - write_lock(&rx->recvmsg_lock); + spin_lock(&rx->recvmsg_lock); if (!list_empty(&call->recvmsg_link)) { _debug("unlinking once-pending call %p { e=%lx f=%lx }", @@ -573,7 +573,7 @@ void rxrpc_release_call(struct rxrpc_sock *rx, struct rxrpc_call *call) call->recvmsg_link.next = NULL; call->recvmsg_link.prev = NULL; - write_unlock(&rx->recvmsg_lock); + spin_unlock(&rx->recvmsg_lock); if (put) rxrpc_put_call(call, rxrpc_call_put_unnotify); |