rxrpc: Use refcount_t rather than atomic_t
[ Upstream commit a05754295e01f006a651eec759c5dbe682ef6cef ] Move to using refcount_t rather than atomic_t for refcounts in rxrpc. Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of: 3bcd6c7eaa53 ("rxrpc: Fix race between conn bundle lookup and bundle removal [ZDI-CAN-15975]") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bddde342c6
commit
23c03ee0ee
@@ -583,7 +583,7 @@ TRACE_EVENT(rxrpc_client,
|
||||
TP_fast_assign(
|
||||
__entry->conn = conn ? conn->debug_id : 0;
|
||||
__entry->channel = channel;
|
||||
__entry->usage = conn ? atomic_read(&conn->usage) : -2;
|
||||
__entry->usage = conn ? refcount_read(&conn->ref) : -2;
|
||||
__entry->op = op;
|
||||
__entry->cid = conn ? conn->proto.cid : 0;
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user