Commit 3f56a0b7 authored by Kuniyuki Iwashima's avatar Kuniyuki Iwashima Committed by nirmp
Browse files

af_unix: Do not use atomic ops for unix_sk(sk)->inflight.



[ Upstream commit 97af84a6 ]

When touching unix_sk(sk)->inflight, we are always under
spin_lock(&unix_gc_lock).

Let's convert unix_sk(sk)->inflight to the normal unsigned long.

Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240123170856.41348-3-kuniyu@amazon.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit c8a2b1f7)

Change-Id: If91e775c930c4948ba137f90f58bb414090dacb4
Signed-off-by: default avatarnirmp <quic_nirmp@quicinc.com>
parent aea925f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment