Received: by 10.223.176.5 with SMTP id f5csp988127wra; Fri, 2 Feb 2018 09:18:12 -0800 (PST) X-Google-Smtp-Source: AH8x226oMS+1/R1YE2EbQ6Te6HN9qX078FvEhbqIc9janD/ZOZO+PpMxo2VTgvo44YhR8uvudy6a X-Received: by 2002:a17:902:678e:: with SMTP id g14-v6mr34818741plk.309.1517591892199; Fri, 02 Feb 2018 09:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517591892; cv=none; d=google.com; s=arc-20160816; b=pBMolDT2+flrxMsM0T1Ns9RFq/k8i9/9x08Mwr/dilKvknZf8EVx28Whv+4PxolrvD Hpf+2Yb2dBELBkPM3+66OGkiVG5GW7Nd7AN7ymjipuIaZNkBhWlIeQBybwS1F9HwKxEm t9KKMQ4Vt0uUfmdURf+yE230ycn+phd0n2tkh/cE8nHqxGC3FP+dg3bV4L7Vc6D/dD2Q URH4VLzKTBCpep1doI7G900Vv48WADz0ccz+dFimp418YT3XdqvCpSmJyfGnPy5GpSqH 0ewB0eisnHJZi93kfkVKRu/uPlxVMqBeJGDhjN5nlufUgWaEgHI7Jg8NpKiXh6lDz8Hq 0Cew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=9PpoTkxBfiQv1n1UFDYy1ZMw/yusGlpTCl3aqW8bzBw=; b=oQ57Keo2bs3rjn15isfurjvruwCw6sfzOLuwuZoDjgPIXh98OLsYXw/vw5Q6vOvOyj xVzCekhyW6ebV3wW8oJnjILQ6M5KOQ7MsD5R0NtCqEvdhL45MgJG2vzyEQNCAAjV3PRG +LgFZp57w5USg9Qci6eS8UK1ag+s5SCe3ewSmJ8WyzrxG2UwSSWGjYld085OvXZpVgD/ QwUHzL5uOMVyXHJJeo51eQpA7BJCu9Pd7eXYmZi+g+p5ZqL7Q3AuowTH2WHNBxcbhw9c tVljn3i3prJCdHWC5wrO2fMHuxhjNdxUOdeowoXqr5qJ2gjDY4V3511BYKbcPvFq9aI8 7rvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 101-v6si2179206ple.263.2018.02.02.09.17.57; Fri, 02 Feb 2018 09:18:12 -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; 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 S1753706AbeBBRRc (ORCPT + 99 others); Fri, 2 Feb 2018 12:17:32 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38502 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753355AbeBBRK6 (ORCPT ); Fri, 2 Feb 2018 12:10:58 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DDD0AF08; Fri, 2 Feb 2018 17:10:57 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , "J. Bruce Fields" , Sasha Levin Subject: [PATCH 4.14 087/156] grace: replace BUG_ON by WARN_ONCE in exit_net hook Date: Fri, 2 Feb 2018 17:57:48 +0100 Message-Id: <20180202140844.185927878@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Vasily Averin [ Upstream commit b872285751c1af010e12d02bce7069e2061a58ca ] Signed-off-by: Vasily Averin Signed-off-by: J. Bruce Fields Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/nfs_common/grace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- 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 = net_generic(net, grace_net_id); - 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__); } static struct pernet_operations grace_net_ops = {