]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
smb3: allow stats which track session and share reconnects to be reset
authorSteve French <stfrench@microsoft.com>
Sun, 16 Sep 2018 04:04:41 +0000 (23:04 -0500)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:57:29 +0000 (19:57 -0600)
commit0249c941ef25604953e8cdee5e0663172a953ffc
treee16f4d80722b04bd9d7044c075bddf04bf1bcb0c
parent2dfcfb4df2f7e4891b8913c107b5fd7cb31c88d3
smb3: allow stats which track session and share reconnects to be reset

BugLink: https://bugs.launchpad.net/bugs/1836802
commit 2c887635cd6ab3af619dc2be94e5bf8f2e172b78 upstream.

Currently, "echo 0 > /proc/fs/cifs/Stats" resets all of the stats
except the session and share reconnect counts.  Fix it to
reset those as well.

CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/cifs/cifs_debug.c