Skip to contentSkip to conversation

cifs: remove unnecessary tracing after put tcon

PATCH New [email protected] 1 participant 1 message Feb 14

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: remove unnecessary tracing after put tcon

From: Shyam Prasad N <[email protected]>

This code was recently changed from manually decrementing tcon ref to using cifs_put_tcon. But even before that change this tracing happened after decrementing the ref count, which is wrong. With cifs_put_tcon, tracing already happens inside it. So just removing the extra tracing here.

---
 fs/smb/client/smb2ops.c | 2 --
 fs/smb/client/trace.h   | 1 -
 2 files changed, 3 deletions(-)
fs/smb/client/smb2ops.c +0 -2
index 262df6d2c2c82..18177a9b2ba52 100644
@@ -3176,8 +3176,6 @@ smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses,
 	if (tcon && !tcon->ipc) {
 		/* ipc tcons are not refcounted */
 		cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_dfs_refer);
-		trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count,
-				    netfs_trace_tcon_ref_dec_dfs_refer);
 	}
 	kfree(utf16_path);
 	kfree(dfs_req);
fs/smb/client/trace.h +0 -1
index 191f02344dcdd..9228f95cae2bd 100644
@@ -168,7 +168,6 @@
 	E_(cifs_trace_rw_credits_zero_in_flight,	"ZERO-IN-FLT")
 
 #define smb3_tcon_ref_traces					      \
-	EM(netfs_trace_tcon_ref_dec_dfs_refer,		"DEC DfsRef") \
 	EM(netfs_trace_tcon_ref_free,			"FRE       ") \
 	EM(netfs_trace_tcon_ref_free_fail,		"FRE Fail  ") \
 	EM(netfs_trace_tcon_ref_free_ipc,		"FRE Ipc   ") \
Signature · 1 line
2.43.0