Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3429552imu; Sun, 11 Nov 2018 14:55:22 -0800 (PST) X-Google-Smtp-Source: AJdET5dQmsmOlI3gQE7Ajsmg1CCH2lqyXu7Zf07oGp4CmQoFVzgMrcQLbrrus1tH7ulhZkMqKXMP X-Received: by 2002:a63:5d55:: with SMTP id o21mr15143054pgm.92.1541976922566; Sun, 11 Nov 2018 14:55:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976922; cv=none; d=google.com; s=arc-20160816; b=CJdJzqFZQM8e5RcYPXHUX46bWTL4u1I1MmcIfscMsz9UsCOQkH0eP6o8imDRx7/V3p ZEMLPJcnCP8dYAfPv4Gz4rg7CORqUklui4PUumzGsXCVYrjIK+UVb0fhXxBUk2RKuPq3 z33XGnB3e2xy4SQkRFhL2azDhOeAXEy9izavGf+CgD8erWdCYYT03AbO1oJI6RDBRJBn pePPdCuFuLGBr04aDBJr69TjVhBmYCAhhmn+FbgKLidazy5QS7C8mR9BlOamQjpBvFZX sQTFAyHM46v0C5OoAi0+19Jxgpcg9gemMsbb/eFqow4EztrE1bnu422IMY8ppgQ8qXPf tZhw== 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=woAUB8bhRRNW39OtT91tqeq2d91KQYCXzA5gJ0eCczM=; b=KRaTmtzwCJWO6gj5FjU5vWOVBBqqW/vo6tUig0mykMxgQyvnjk+Mgk9RfSXYCb0jXh xFwaExjaObf0aHAFF89JQhfcpE+1PJ+0DJlOHl2WxryxHjW1MM/YRL+7CewMytiMO1eh XZiPHH/YiFQ0ibv5kdNiPojgzb4Lr9vPgK6oE6MpoUT8dMxuLF/mbzbPB8BYIF8uIVBS NgDp0XHtbx6jQHz4CHOcWO89OA6g0ZnO40g7bWti6H9LtOXIU9sWF9eEeazWGi8NXznG LAtQdHlD1Sy/VF88FXUM37CqyehFaPPNX55JNdEJGpZHWL97lD14p5KLPau7SBayjoOv bfRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fLScX7sY; 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 i33-v6si15174042pld.433.2018.11.11.14.55.07; Sun, 11 Nov 2018 14:55:22 -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=fLScX7sY; 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 S2403967AbeKLIW4 (ORCPT + 99 others); Mon, 12 Nov 2018 03:22:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:54742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403950AbeKLIWz (ORCPT ); Mon, 12 Nov 2018 03:22:55 -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 29284223CB; Sun, 11 Nov 2018 22:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975578; bh=h1rKWV2An88lwxYDddsedtgJS5nyKugmKu2mvBjgFzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fLScX7sYLeG4j67YAQckVROudyNr1BxyldNP7OoweLYltFMpCsR2YzYPtBdkwUHQj w4FLZ10X+yKrjuk/e29NWHBHLoJE9vsNKRv3Zm7sepK5pLqFjudfCKuYYTuYyW3UnG ZItzNxtlXrygzQLzHgA3iLhZlNTOTQSOs5ty79lE= 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.14 164/222] smb3: allow stats which track session and share reconnects to be reset Date: Sun, 11 Nov 2018 14:24:21 -0800 Message-Id: <20181111221701.945323304@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@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.14-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 @@ -289,6 +289,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;