cifs: print all credit counters in DebugData
Output of /proc/fs/cifs/DebugData shows only the per-connection counter for the number of credits of regular type. i.e. the credits reserved for echo and oplocks are not displayed. There have been situations recently where having this info would have been useful. This change prints the credit counters of all three types: regular, echo, oplocks. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
91f4480c41
commit
2a44b38966
|
@ -130,12 +130,14 @@ cifs_dump_channel(struct seq_file *m, int i, struct cifs_chan *chan)
|
|||
struct TCP_Server_Info *server = chan->server;
|
||||
|
||||
seq_printf(m, "\n\n\t\tChannel: %d ConnectionId: 0x%llx"
|
||||
"\n\t\tNumber of credits: %d Dialect 0x%x"
|
||||
"\n\t\tNumber of credits: %d,%d,%d Dialect 0x%x"
|
||||
"\n\t\tTCP status: %d Instance: %d"
|
||||
"\n\t\tLocal Users To Server: %d SecMode: 0x%x Req On Wire: %d"
|
||||
"\n\t\tIn Send: %d In MaxReq Wait: %d",
|
||||
i+1, server->conn_id,
|
||||
server->credits,
|
||||
server->echo_credits,
|
||||
server->oplock_credits,
|
||||
server->dialect,
|
||||
server->tcpStatus,
|
||||
server->reconnect_instance,
|
||||
|
@ -350,8 +352,11 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
|
|||
atomic_read(&server->smbd_conn->mr_used_count));
|
||||
skip_rdma:
|
||||
#endif
|
||||
seq_printf(m, "\nNumber of credits: %d Dialect 0x%x",
|
||||
server->credits, server->dialect);
|
||||
seq_printf(m, "\nNumber of credits: %d,%d,%d Dialect 0x%x",
|
||||
server->credits,
|
||||
server->echo_credits,
|
||||
server->oplock_credits,
|
||||
server->dialect);
|
||||
if (server->compress_algorithm == SMB3_COMPRESS_LZNT1)
|
||||
seq_printf(m, " COMPRESS_LZNT1");
|
||||
else if (server->compress_algorithm == SMB3_COMPRESS_LZ77)
|
||||
|
|
Loading…
Reference in New Issue