stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "grace: replace BUG_ON by WARN_ONCE in exit_net hook" has been added to the 4.4-stable tree
@ 2018-02-01 13:18 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2018-02-01 13:18 UTC (permalink / raw)
  To: vvs, alexander.levin, bfields, gregkh; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    grace: replace BUG_ON by WARN_ONCE in exit_net hook

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     grace-replace-bug_on-by-warn_once-in-exit_net-hook.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From foo@baz Thu Feb  1 14:14:46 CET 2018
From: Vasily Averin <vvs@virtuozzo.com>
Date: Mon, 6 Nov 2017 16:22:48 +0300
Subject: grace: replace BUG_ON by WARN_ONCE in exit_net hook

From: Vasily Averin <vvs@virtuozzo.com>


[ Upstream commit b872285751c1af010e12d02bce7069e2061a58ca ]

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 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 = {


Patches currently in stable-queue which might be from vvs@virtuozzo.com are

queue-4.4/lockd-fix-list_add-double-add-caused-by-legacy-signal-interface.patch
queue-4.4/grace-replace-bug_on-by-warn_once-in-exit_net-hook.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-01 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 13:18 Patch "grace: replace BUG_ON by WARN_ONCE in exit_net hook" has been added to the 4.4-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).