cifs: Add a couple of missing smb3_rw_credits tracepoints
Subsystems (3)
PATCH 1/1 cifs: Add a couple of missing smb3_rw_credits tracepoints
Add missing smb3_rw_credits tracepoints to cifs_readv_callback() (for SMB1) to match those of SMB2/3.
Signed-off-by David Howells <[email protected]>
cc Steve French <[email protected]>
cc Paulo Alcantara <[email protected]>
cc Shyam Prasad N <[email protected]>
cc Tom Talpey <[email protected]>
--- fs/smb/client/cifssmb.c | 8 ++++++++ 1 file changed, 8 insertions(+)
fs/smb/client/cifssmb.c +8 -0
@@ -1294,6 +1294,8 @@ cifs_readv_callback(struct TCP_Server_Info *server, struct smb_message *smb) .rreq_debug_id = rdata->rreq->debug_id, .rreq_debug_index = rdata->subreq.debug_index, }; +unsigned int rreq_debug_id = rdata->rreq->debug_id; +unsigned int subreq_debug_index = rdata->subreq.debug_index; cifs_dbg(FYI, "%s: mid=%llu state=%d result=%d bytes=%zu\n", __func__, smb->mid, smb->mid_state, rdata->result,
@@ -1357,12 +1359,18 @@ cifs_readv_callback(struct TCP_Server_Info *server, struct smb_message *smb)__set_bit (NETFS_SREQ_MADE_PROGRESS , &rdata->subreq.flags); } +trace_smb3_rw_credits (rreq_debug_id, subreq_debug_index, rdata->credits.value, + server->credits, server->in_flight, +0 , cifs_trace_rw_credits_read_response_clear); rdata->credits.value =0 ; rdata->subreq.error = rdata->result; rdata->subreq.transferred += smb->resp_data_len;trace_netfs_sreq (&rdata->subreq, netfs_sreq_trace_io_progress);netfs_read_subreq_terminated (&rdata->subreq);add_credits (server, &credits,0 ); +trace_smb3_rw_credits (rreq_debug_id, subreq_debug_index,0 , + server->credits, server->in_flight, + credits.value, cifs_trace_rw_credits_read_response_add); }/* cifs_async_readv - send an async write, and set up mid to handle result */