grace: replace BUG_ON by WARN_ONCE in exit_net hook
authorVasily Averin <vvs@virtuozzo.com>
Mon, 6 Nov 2017 13:22:48 +0000 (16:22 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 27 Nov 2017 21:45:10 +0000 (16:45 -0500)
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfs_common/grace.c

index 897b299db55e01e291641b35d25f4c903962fec5..bd3e2d328e64dedb65c895aa29410b97ffc6ed8e 100644 (file)
@@ -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 = {