diff options
| author | 2025-11-13 15:09:13 -0300 | |
|---|---|---|
| committer | 2025-11-20 03:03:30 -0600 | |
| commit | a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3 (patch) | |
| tree | e6c35c5fcdabe1a5a3abadad30723d0ceb3da977 /net/openvswitch/ssh:/git@git.zx2c4.com | |
| parent | Linux 6.18-rc6 (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/openvswitch/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
