]>
Commit | Line | Data |
---|---|---|
39a3a1fe GKH |
1 | From 9742805d6b1bfb45d7f267648c34fb5bcd347397 Mon Sep 17 00:00:00 2001 |
2 | From: Steve French <smfrench@gmail.com> | |
3 | Date: Mon, 19 Sep 2016 22:06:35 -0500 | |
4 | Subject: Display number of credits available | |
5 | ||
6 | From: Steve French <smfrench@gmail.com> | |
7 | ||
8 | commit 9742805d6b1bfb45d7f267648c34fb5bcd347397 upstream. | |
9 | ||
10 | In debugging smb3, it is useful to display the number | |
11 | of credits available, so we can see when the server has not granted | |
12 | sufficient operations for the client to make progress, or alternatively | |
13 | the client has requested too many credits (as we saw in a recent bug) | |
14 | so we can compare with the number of credits the server thinks | |
15 | we have. | |
16 | ||
17 | Add a /proc/fs/cifs/DebugData line to display the client view | |
18 | on how many credits are available. | |
19 | ||
20 | Signed-off-by: Steve French <steve.french@primarydata.com> | |
21 | Reported-by: Germano Percossi <germano.percossi@citrix.com> | |
22 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
23 | ||
24 | --- | |
25 | fs/cifs/cifs_debug.c | 1 + | |
26 | 1 file changed, 1 insertion(+) | |
27 | ||
28 | --- a/fs/cifs/cifs_debug.c | |
29 | +++ b/fs/cifs/cifs_debug.c | |
30 | @@ -152,6 +152,7 @@ static int cifs_debug_data_proc_show(str | |
31 | list_for_each(tmp1, &cifs_tcp_ses_list) { | |
32 | server = list_entry(tmp1, struct TCP_Server_Info, | |
33 | tcp_ses_list); | |
34 | + seq_printf(m, "\nNumber of credits: %d", server->credits); | |
35 | i++; | |
36 | list_for_each(tmp2, &server->smb_ses_list) { | |
37 | ses = list_entry(tmp2, struct cifs_ses, |