From patchwork Thu Nov 2 15:36:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Averin X-Patchwork-Id: 10038913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C7EF60291 for ; Thu, 2 Nov 2017 15:36:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DE7E2919A for ; Thu, 2 Nov 2017 15:36:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42CFD2919D; Thu, 2 Nov 2017 15:36:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48FE92919A for ; Thu, 2 Nov 2017 15:36:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933790AbdKBPgH (ORCPT ); Thu, 2 Nov 2017 11:36:07 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:40275 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933658AbdKBPgE (ORCPT ); Thu, 2 Nov 2017 11:36:04 -0400 Received: from [172.16.24.21] (msk-vpn.virtuozzo.com [195.214.232.6]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id vA2Fa07U023285; Thu, 2 Nov 2017 18:36:00 +0300 (MSK) From: Vasily Averin Subject: [PATCH] grace: replace BUG_ON on WARN_ON in grace_exit_net() To: linux-nfs@vger.kernel.org, Jeff Layton , "J. Bruce Fields" Message-ID: <18234b43-c052-0243-a3f2-277a1bfaa66e@virtuozzo.com> Date: Thu, 2 Nov 2017 18:36:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP use WARN_ON instead of BUG_ON to prevent dispensable kernel crash Signed-off-by: Vasily Averin --- fs/nfs_common/grace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs_common/grace.c b/fs/nfs_common/grace.c index 420d3a0..77226e6 100644 --- a/fs/nfs_common/grace.c +++ b/fs/nfs_common/grace.c @@ -104,7 +104,7 @@ grace_exit_net(struct net *net) { struct list_head *grace_list = net_generic(net, grace_net_id); - BUG_ON(!list_empty(grace_list)); + WARN_ON(!list_empty(grace_list)); } static struct pernet_operations grace_net_ops = {