Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1419033ybl; Wed, 28 Aug 2019 14:31:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1WMrg7V0Sim1/wTwcsQ81j0JKtKPU7F8b+qo3LoMU15rfbHB526YsfXFDbfkGZ7RjpwyZ X-Received: by 2002:a63:b555:: with SMTP id u21mr5362228pgo.222.1567027899029; Wed, 28 Aug 2019 14:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567027899; cv=none; d=google.com; s=arc-20160816; b=TG9zrBJAWK7O4ZyF7RwKoMd2RD9VXhuL4UpD1xEvfbyBS6fHgqGpSAR+9VSWljtxIp 1Uozh4RvkG7/t0NJwL+e8I7hxOtUhvmxrZE8Z48f/FkyFiGJIQYa2+udtGN9XO4d+bTk p1OCxK0CRUj/90qou38Q6HQXI3z/6deHRskp+4e3toyAzed4COYI1G7+ftQ2kJY0Uj+W zCGWJ40XlMs9hhMC8bI7brAhgES8DhRmwjHxzdBv2itWHb8BPVm3+QljMwfEnEpXHA7d R7xC1xaT5yjIBHs4LDTHvkmwYT6OeV9JqsUVa/5swBL2AAy5TFHQ42SwaTqu1qf/0gbe iAow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=h8CddNDq+sWitVQNFlGow6uiUgUVcdVRsNWpPmMOE8I=; b=G1etFik59tZJGFZi6bGdtxmXOfYRwI+IgQDRpovTKDlSbBP3z//N5aqMfLE/S0KGAn OJT6D1vJIc5lYYXq1CFVQ8QNkkOSVUIsiFZIy1CKEQHQjNKK8Yl+smm/4ABuPy5LkY9A Js5/Q5TC6+EkCI7IOxQEbLZ5wQFI2J0AO7nJCoQyoUXNP+lN95iP+/L/6Xqav1GYQeuj DZxs1h27iNzP1eVogZkF7DuScIKiRQRVGf/0h9m3pT5LmH84JZ+dHLnuA5rS8pfPlvEu oG6P7sjKHOU2tmd1ol9604JkOPsZVQEo74w7XFKoGNc19PLSwMP7/0DypgLLEHn4amKs MkJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G84NP4C0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si99218pla.196.2019.08.28.14.31.23; Wed, 28 Aug 2019 14:31:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=G84NP4C0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbfH1Vae (ORCPT + 99 others); Wed, 28 Aug 2019 17:30:34 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:35260 "EHLO mail-qk1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726735AbfH1Vae (ORCPT ); Wed, 28 Aug 2019 17:30:34 -0400 Received: by mail-qk1-f181.google.com with SMTP id r21so1141640qke.2; Wed, 28 Aug 2019 14:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=h8CddNDq+sWitVQNFlGow6uiUgUVcdVRsNWpPmMOE8I=; b=G84NP4C0D2dEHqJ4eMcdP3bxmRBvrog+sdCPEdepNhOjWeuHVZyRFgWK2dRmUrwqyL Q9mbWraB1kI+q6bKyCJM0AW9R85Xu8LhIWJSBSUhlqhBOGHqELJcVIMbtbHvE14yvPyv bSwx9liDknmni1GaQ9vqdBhTUuOzpAofwVUlKADJy4ch00xRTOdOhklWtKZQezLQOKTW jEcXxd2bS9qywZR1mItfzEq/8Y5lQx68kPQ0h+d0fExSRcWs9n4CFEQnEi4tJ4y9nw/U PY6W+2+lKu2tvpnln3Qt0xr08EhjCwRr8CdddCgc5vuwi5nd6gya3+yGGTVy/1IV3gVZ WmfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=h8CddNDq+sWitVQNFlGow6uiUgUVcdVRsNWpPmMOE8I=; b=eDNMB2RrZLuqJW2fRm8BP3sbK8jPZoQHvS0XEQ8xyREPx/zp7IKWbOZSGnoXnWgRfo 5tJrGxHB4hHmtO2DQs27JH48ep1uXjypKriVBPd6co3JAiTIsOH0bjil035t8RvMbp+u ap8EezCjSXUDVhKSb6xgcQj7yckldGXBsvuxgSCiNZFEyRYUiHWb3Uy71Y5orXezCpRS b3dpSXQY6JxzoOpwD5g9sXcdi6M57Hdm9osKkwd1J3tPN/iFZayOjsHPh5ZpwqvM7aO+ t3Y9YXye7ObfnHwKknQ0KnWZedu5hhXdycu9jv1Flx+or16oixDDR6sdwS/YBzqlwlzu onGw== X-Gm-Message-State: APjAAAUNDbjZRlF9YICJYGLrUdTK4/Ira6JYCURMogvcdMh03wezk/eF e+Q87C4BwYsCYYuoUcjDyFesXDJtUeHZjQZ6PXcTK4yB X-Received: by 2002:a05:620a:13c5:: with SMTP id g5mr6072262qkl.433.1567027833123; Wed, 28 Aug 2019 14:30:33 -0700 (PDT) MIME-Version: 1.0 References: <20190828064749.GA165571@LGEARND20B15> <20190828151411.GC1037350@magnolia> In-Reply-To: <20190828151411.GC1037350@magnolia> From: Austin Kim Date: Thu, 29 Aug 2019 06:30:43 +0900 Message-ID: Subject: Re: [PATCH] xfs: Use WARN_ON rather than BUG() for bailout mount-operation To: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Mr. Darrick J. Wong Thanks for reviewing patch. BTW, I have a question for you. Do I have to update the patch again with 'a space before the brace'? Or could I just wait for the patch to be imported? It would be thankful if you give me a feedback. BR, Guillermo Austin Kim 2019=EB=85=84 8=EC=9B=94 29=EC=9D=BC (=EB=AA=A9) =EC=98=A4=EC=A0=84 12:14, = Darrick J. Wong =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84= =B1: > > On Wed, Aug 28, 2019 at 03:47:49PM +0900, Austin Kim wrote: > > If the CONFIG_BUG is enabled, BUG() is executed and then system is cras= hed. > > However, the bailout for mount is no longer proceeding. > > > > For this reason, using WARN_ON rather than BUG() could prevent this sit= uation. > > --- > > fs/xfs/xfs_mount.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c > > index 322da69..10fe000 100644 > > --- a/fs/xfs/xfs_mount.c > > +++ b/fs/xfs/xfs_mount.c > > @@ -213,8 +213,7 @@ xfs_initialize_perag( > > goto out_hash_destroy; > > > > spin_lock(&mp->m_perag_lock); > > - if (radix_tree_insert(&mp->m_perag_tree, index, pag)) { > > - BUG(); > > + if (WARN_ON(radix_tree_insert(&mp->m_perag_tree, index, p= ag))){ > > Need a space before the brace. > > Will fix on import, > Reviewed-by: Darrick J. Wong > > --D > > > spin_unlock(&mp->m_perag_lock); > > radix_tree_preload_end(); > > error =3D -EEXIST; > > -- > > 2.6.2 > >