Received: by 10.223.176.46 with SMTP id f43csp278538wra; Tue, 23 Jan 2018 20:55:32 -0800 (PST) X-Google-Smtp-Source: AH8x225nS16bGrjtnY0S1nQcqObTFupKP5nSg/W7zrLIta58LXcCCy4Xo67J2FBZJxtN+r/1ja6K X-Received: by 2002:a17:902:6b05:: with SMTP id o5-v6mr6900339plk.179.1516769732024; Tue, 23 Jan 2018 20:55:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516769731; cv=none; d=google.com; s=arc-20160816; b=c8IEc7GKvny4iqzUrKe/iQ+E/uRtax+diAqxN/Uz1LuRGLfC3+eKmzHwjyRgKWaWcv eFIFJbjCLkmwAYFjg/5rdj7FZU2dIHeJOUBGLydXi+2Mi+zj1yhRWlxPwwE0rtCMJ1UI w1cJoAnvoq0N3PikA5qneNCsnVl0YQW22Y/guMZHEou2bpSiaCoSWBMS3M5uUW9L9arJ PMRllBG1CBd1PFPsqiwmmY/nw1rYs//JJZaIc4AP71VBqva2jmy81r37Y2renzqp1NJF rugVdiiSsoVv0qr3l1N6DfxGRGkjjF9qGv/XtwjdIivyjz8PkU59T2HKWnMX7fG2xwYE OQfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=knezCAY729bPFnJMb1RlWlTySyB60Qcc+STkb8wmpas=; b=slJeh+Sn2GmdC7cUiS5CScGPWXls+2Trw0oXtGeRAY7U9/VACwrtuWtiobsXVrw4Ef d2PwaBXJZjt95jy6qj9MttRS24gX4ZcQufPsg8UbXFy5vRhu0X3n9uWNG/ZRl/FjpVlm gr/gNxK8LPeQE7HjxcUZC9E3+ClJ/DQEKwtpZAqcLbprZMIJJCTCIlFP0aqcC3ivWoPI zH1TM3VCzTr+eLx0f5ox276gLXvFJsyuRfU28y3CFTS20jxWTkDoVfMrCrGNT2Sb7cAo d8uGZozIvj3V3lYIeBe69bif46a+vznTrEmz7x9ndIhnHH+yBsSjKKvhiZTXnWzhrB6t 19Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=AAggFO24; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 205si2267395pfw.227.2018.01.23.20.55.18; Tue, 23 Jan 2018 20:55:31 -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=@microsoft.com header.s=selector1 header.b=AAggFO24; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932474AbeAXEy6 (ORCPT + 99 others); Tue, 23 Jan 2018 23:54:58 -0500 Received: from mail-sn1nam01on0109.outbound.protection.outlook.com ([104.47.32.109]:45568 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932233AbeAXEP1 (ORCPT ); Tue, 23 Jan 2018 23:15:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=knezCAY729bPFnJMb1RlWlTySyB60Qcc+STkb8wmpas=; b=AAggFO24wOi4mWgonV9HvplVAGgC23K/tX0ENmQG4+j+L+qo9qGvqnlmcQJQac+gp4Usjjcj9QJvUVKEsfXMhinCUl/MvPwakizstT0aLjuTVKJRMldzpjwcK3buMEm2wlY6jvffe6Qj9/PQvTP130TSq0jlHP2AcaY+Iqz2l4E= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1015.namprd21.prod.outlook.com (52.132.133.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.464.0; Wed, 24 Jan 2018 04:15:22 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7%2]) with mapi id 15.20.0464.000; Wed, 24 Jan 2018 04:15:22 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Vasily Averin , "J . Bruce Fields" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 059/100] grace: replace BUG_ON by WARN_ONCE in exit_net hook Thread-Topic: [PATCH AUTOSEL for 4.14 059/100] grace: replace BUG_ON by WARN_ONCE in exit_net hook Thread-Index: AQHTlMnjH7wEfrkpqEWKOR/efcvVOw== Date: Wed, 24 Jan 2018 04:14:54 +0000 Message-ID: <20180124041414.32065-59-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> In-Reply-To: <20180124041414.32065-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1015;7:xFVvVLJQALAseE8mmr+ztoiLMEhb4NgUBZbbYxsuIc2M3HpaV+5MlfofpKF6OzKEYldr0owiIIQRWCZyXqApvNgt5vFmiDxyubdKl6LsgnT8kIAnZEoYR8arvHi4pXDGE1ePjoEt1BSXrKX6OVWgVEfKv36AVkVnr3MT7VlJYulfsHlPFydX2LvPWyrwixQ5LvUU39B/Nreqqf8iiZGWvDmR/EJozpOm3jDPD0+gRiHfNy0ZCaV5Pivi4G2yJ29k x-ms-office365-filtering-correlation-id: 25eacbbb-3be9-4dc6-4bc5-08d562e11621 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020);SRVR:DM5PR2101MB1015; x-ms-traffictypediagnostic: DM5PR2101MB1015: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(788757137089); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231046)(2400081)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1015;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1015; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(376002)(366004)(39860400002)(346002)(199004)(189003)(478600001)(6666003)(106356001)(6512007)(53936002)(2900100001)(36756003)(102836004)(2950100002)(2501003)(10290500003)(97736004)(14454004)(81166006)(72206003)(8936002)(6486002)(1076002)(10090500001)(6346003)(26005)(54906003)(4326008)(575784001)(76176011)(99286004)(86362001)(3660700001)(105586002)(6116002)(8676002)(68736007)(22452003)(66066001)(25786009)(6506007)(5660300001)(305945005)(59450400001)(7736002)(3280700002)(5250100002)(2906002)(107886003)(86612001)(6436002)(316002)(81156014)(3846002)(110136005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1015;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: 2Tu3577nmfkDT6RG27oHCNorsNgxr37Hm++EwTwXxUg2CPVCY9HFGoSx+KXcZq8jPLPJK5WSzS+YwWcrseIf6w== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25eacbbb-3be9-4dc6-4bc5-08d562e11621 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:54.7363 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vasily Averin [ Upstream commit b872285751c1af010e12d02bce7069e2061a58ca ] Signed-off-by: Vasily Averin Signed-off-by: J. Bruce Fields Signed-off-by: Sasha Levin --- fs/nfs_common/grace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/nfs_common/grace.c b/fs/nfs_common/grace.c index 420d3a0ab258..1bd659938646 100644 --- a/fs/nfs_common/grace.c +++ b/fs/nfs_common/grace.c @@ -104,7 +104,9 @@ grace_exit_net(struct net *net) { struct list_head *grace_list =3D net_generic(net, grace_net_id); =20 - BUG_ON(!list_empty(grace_list)); + WARN_ONCE(!list_empty(grace_list), + "net %x %s: grace_list is not empty\n", + net->ns.inum, __func__); } =20 static struct pernet_operations grace_net_ops =3D { --=20 2.11.0