Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3474329imu; Sun, 11 Nov 2018 15:56:55 -0800 (PST) X-Google-Smtp-Source: AJdET5ePh1qhbVNiwEwuob9R+RyIUWTw9ZH+UD1wdzA057HaBjvNiVA+xEdMvw2bF1FFCXi7ZIfr X-Received: by 2002:a63:4466:: with SMTP id t38mr15137458pgk.102.1541980615155; Sun, 11 Nov 2018 15:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980615; cv=none; d=google.com; s=arc-20160816; b=Ay+HbyA2sOCYhJuE+PKGmQWCKgxxIeRzzucTG9nKPG1Zkb4SzU3oqxXxtA9uWwiejt MRnLiEeGDSh1r+7XHwlA7x+OVCFRiAqPJMlj7obgxHxrhTJp/zPY7+K0W8K/XXvJuFBT VOrqxCaE23xhbEkB4A2IABgyZMX/p2nX2Sm+lCDXTgmnqOz4JV0FZeLQc6ENf3XlNMDR 3+/IZeurmP1n+PNVz9xBjzZZY3gBwlgXwTFEZOXuUapAeLutQYZr+xIz555amFaUBMv6 ZzkBiTYsXMRwHw8FIPEqM3BgqcEDdtA6zYh9nlJJV2IiQq/Uuy4Am7KZMFGqrQPQ89b/ Rcrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/wOxBcis1SkFgNAs0xFrXAa149bXBroZNKCSGhg1m2U=; b=FupSEnIZ2Vqz3KQvg74xhjWoXDKbnI46PGITdyCpUxC1XYjwlsAlal5pDCQpKqH8J9 u2ih8VHtMdmPRGtJ8rJEphz0jHuv7OJH4RiPfS1qHMLyj57F9IcozxDFbClR0FEEq+te GLBFDIG+CR1e5NHTFwfnckeJzqcqf4vIdwc9LV0ZCjZ837qe5NuGfF2h0tCoaddDUGyb yDD/IMfJTT2LAYoNL7vfen6puBtkYRMmifKiLvrHCDT7YoZ+om06za5/0Fjcl+LElOyG nvvJubevrBpZKusbY4ZCt8Mq6ZfAYFj3PEieHxTY3aPDeGy+mhSGhIA3VSGsV3OMIU1l A09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hDDNyK+t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12-v6si4736113plb.324.2018.11.11.15.56.40; Sun, 11 Nov 2018 15:56:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hDDNyK+t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729611AbeKLISR (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:34210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732596AbeKLISQ (ORCPT ); Mon, 12 Nov 2018 03:18:16 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FA892154B; Sun, 11 Nov 2018 22:28:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975301; bh=B1xyCeAgcRXfBNeaA+3cHdtTMOP50wHteIvH9pFCA7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hDDNyK+tnoLI7LoCMhjyvH/RQvnvfAfseMO3MMK/DNZNojunvYywOVI+3Vdv6kX2U zBp/rK4SgC0xe6t6+C4EWwcmGyRMo03koRxpaB4OiT3aH5v68fLzKveroWQb0B+uAY eU3gWAd6JzLBofkVFxowR2t++srXENA3DD4GeIyM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve French , Aurelien Aptel Subject: [PATCH 4.19 263/361] smb3: allow stats which track session and share reconnects to be reset Date: Sun, 11 Nov 2018 14:20:10 -0800 Message-Id: <20181111221654.353142506@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steve French 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 Signed-off-by: Steve French Reviewed-by: Aurelien Aptel Signed-off-by: Greg Kroah-Hartman --- fs/cifs/cifs_debug.c | 3 +++ 1 file changed, 3 insertions(+) --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -383,6 +383,9 @@ static ssize_t cifs_stats_proc_write(str atomic_set(&totBufAllocCount, 0); atomic_set(&totSmBufAllocCount, 0); #endif /* CONFIG_CIFS_STATS2 */ + atomic_set(&tcpSesReconnectCount, 0); + atomic_set(&tconInfoReconnectCount, 0); + spin_lock(&GlobalMid_Lock); GlobalMaxActiveXid = 0; GlobalCurrentXid = 0;