Return-Path: Received: from mail-bl2nam02on0126.outbound.protection.outlook.com ([104.47.38.126]:63839 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032309AbeCAPcU (ORCPT ); Thu, 1 Mar 2018 10:32:20 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Vasily Averin , "J . Bruce Fields" , Sasha Levin Subject: [added to the 4.1 stable tree] grace: replace BUG_ON by WARN_ONCE in exit_net hook Date: Thu, 1 Mar 2018 15:25:28 +0000 Message-ID: <20180301152116.1486-269-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Vasily Averin This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ 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 ae6e58ea4de5..450954d5b7f6 100644 --- a/fs/nfs_common/grace.c +++ b/fs/nfs_common/grace.c @@ -85,7 +85,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.14.1