]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
Display number of credits available
authorSteve French <smfrench@gmail.com>
Tue, 20 Sep 2016 03:06:35 +0000 (22:06 -0500)
committerIshan Mittal <imittal@nvidia.com>
Fri, 6 Jan 2017 10:15:51 +0000 (15:45 +0530)
commit71d64956f8c7b7ac0e81546aa7c388c6584d59c5
tree3b995c7e1fcbfe7767552a4c0a4a918433a2e92d
parent26b74e73285817b5521290818665da1ef27dfa53
Display number of credits available

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>
fs/cifs/cifs_debug.c