diff options
| author | Henrique Carvalho <henrique.carvalho@suse.com> | 2025-11-13 15:09:13 -0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-11-20 03:03:30 -0600 |
| commit | a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3 (patch) | |
| tree | e6c35c5fcdabe1a5a3abadad30723d0ceb3da977 /net/unix/af_unix.c | |
| parent | 6a23ae0a96a600d1d12557add110e0bb6e32730c (diff) | |
smb: client: introduce close_cached_dir_locked()
Replace close_cached_dir() calls under cfid_list_lock with a new
close_cached_dir_locked() variant that uses kref_put() instead of
kref_put_lock() to avoid recursive locking when dropping references.
While the existing code works if the refcount >= 2 invariant holds,
this area has proven error-prone. Make deadlocks impossible and WARN
on invariant violations.
Cc: stable@vger.kernel.org
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
