]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Display number of credits available
authorSteve French <smfrench@gmail.com>
Tue, 20 Sep 2016 03:06:35 +0000 (22:06 -0500)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:45:40 +0000 (16:45 +0000)
commitd7dfb84f1699a797f34f04b6d6ecf3272ea4d3f8
tree268e1ce23155c2443e53333fb627374609a16fc3
parent1bf70c7c2ed83a25ff1e0e764a6326b129942f40
Display number of credits available

BugLink: http://bugs.launchpad.net/bugs/1637510
commit 9742805d6b1bfb45d7f267648c34fb5bcd347397 upstream.

In debugging smb3, it is useful to display the number
of credits available, so we can see when the server has not granted
sufficient operations for the client to make progress, or alternatively
the client has requested too many credits (as we saw in a recent bug)
so we can compare with the number of credits the server thinks
we have.

Add a /proc/fs/cifs/DebugData line to display the client view
on how many credits are available.

Signed-off-by: Steve French <steve.french@primarydata.com>
Reported-by: Germano Percossi <germano.percossi@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/cifs/cifs_debug.c