Kuniyuki Iwashima 37120fa8d9 af_unix: Do not use atomic ops for unix_sk(sk)->inflight.
[ Upstream commit 97af84a6bba2ab2b9c704c08e67de3b5ea551bb2 ]

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: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240123170856.41348-3-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 47d8ac011fe1 ("af_unix: Fix garbage collector racing against connect()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:15:15 +02:00
..
2021-07-01 13:19:48 -07:00
2020-05-05 13:23:29 -07:00
2023-11-20 11:08:28 +01:00
2019-12-09 10:36:44 -08:00
2020-06-22 21:12:44 -07:00
2021-10-18 13:47:09 +01:00
2020-03-04 13:25:55 -08:00
2023-06-14 11:13:02 +02:00
2019-10-05 16:29:00 -07:00
2021-08-03 13:05:26 +01:00
2020-06-18 20:46:23 -07:00
2023-08-11 15:13:54 +02:00
2019-12-09 10:28:43 -08:00