Skip to content

Commit

Permalink
grace: replace BUG_ON by WARN_ONCE in exit_net hook
Browse files Browse the repository at this point in the history
Signed-off-by: Vasily Averin <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
vaverin authored and J. Bruce Fields committed Nov 27, 2017
1 parent 4f34bd0 commit b872285
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/nfs_common/grace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b872285

Please sign in to comment.