Files
linux/fs
Henrique Carvalho 8d7a5b0e5a smb: client: introduce close_cached_dir_locked()
commit a9d1f38df7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-12-01 11:45:38 +01:00
..
2025-06-10 22:21:16 -04:00
2025-06-11 13:41:05 -04:00
2025-09-26 10:14:19 +02:00
2025-10-29 14:10:32 +01:00
2025-10-19 16:37:06 +02:00
2025-10-29 14:10:15 +01:00
2025-10-19 16:37:44 +02:00
2025-10-19 16:37:44 +02:00
2025-06-29 19:03:46 -04:00
2025-05-23 14:20:44 +02:00