OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:48 +0000 (11:08 -0800)
commiteb7814c36f49219f71d8cae91150c3e000c1531a
treeff16cbd95ee417a363113498840aac82eb2da5cd
parentb8e2aea1d4efa0ecfcfcd54c799678e581ed835b
smb3: allow stats which track session and share reconnects to be reset

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