diff options
author | David Howells <dhowells@redhat.com> | 2024-04-04 14:51:36 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-04-19 23:02:09 +0200 |
commit | afc23febd51c7e24361e3a9c09f3e892eb0a41ea (patch) | |
tree | 9859f9daaf1dcd518c60df378ec8c09b32f209eb /fs/smb/client/cifsglob.h | |
parent | cifs: Fix reacquisition of volume cookie on still-live connection (diff) | |
download | linux-afc23febd51c7e24361e3a9c09f3e892eb0a41ea.tar.xz linux-afc23febd51c7e24361e3a9c09f3e892eb0a41ea.zip |
cifs: Add tracing for the cifs_tcon struct refcounting
Add tracing for the refcounting/lifecycle of the cifs_tcon struct, marking
different events with different labels and giving each tcon its own debug
ID so that the tracelines corresponding to individual tcons can be
distinguished. This can be enabled with:
echo 1 >/sys/kernel/debug/tracing/events/cifs/smb3_tcon_ref/enable
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r-- | fs/smb/client/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h index fc09d1c0ee07..6ff35570db81 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -1190,6 +1190,7 @@ struct cifs_fattr { */ struct cifs_tcon { struct list_head tcon_list; + int debug_id; /* Debugging for tracing */ int tc_count; struct list_head rlist; /* reconnect list */ spinlock_t tc_lock; /* protect anything here that is not protected */ |