diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-22 23:47:14 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-22 23:49:37 -0500 |
commit | 3d02c2fdf870288589fe08d29e1255584f0d796e (patch) | |
tree | 45f52f6da4efb4c6a4c7a9cae5597d4bd83a0929 /include/net/af_unix.h | |
parent | c86373faa01918197f4996eb155e188a0ab5b58b (diff) |
af_unix: convert to lock_cmp_fnlockdep_cmp_fn
It turns out there's a deadlock in this code that lockdep couldn't
detect because of incorrect use of nested locking.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r-- | include/net/af_unix.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 49c4640027d8..4eff0a089640 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h @@ -48,9 +48,6 @@ struct scm_stat { #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock) #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock) -#define unix_state_lock_nested(s) \ - spin_lock_nested(&unix_sk(s)->lock, \ - SINGLE_DEPTH_NESTING) /* The AF_UNIX socket */ struct unix_sock { |