diff options
| author | Henrique Carvalho <[email protected]> | 2025-11-13 18:09:13 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-11-20 09:03:30 +0000 |
| commit | a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3 (patch) | |
| tree | e6c35c5fcdabe1a5a3abadad30723d0ceb3da977 /tools/lib/traceevent/plugins/plugin_function.c | |
| parent | Linux 6.18-rc6 (diff) | |
| download | kernel-a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3.tar.gz kernel-a9d1f38df7ecd0e21233447c9cc6fa1799eddaf3.zip | |
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: [email protected]
Reviewed-by: David Howells <[email protected]>
Signed-off-by: Henrique Carvalho <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions
