Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5060179pjb; Mon, 27 Jul 2020 11:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVLr9yk4hYujfE4Q+hxam2/JRptIVBpY2kXiii3ixxjv9N3Nd0gF7V7K3Z+YXbo28KmrAG X-Received: by 2002:a05:6402:1606:: with SMTP id f6mr3431027edv.328.1595876020959; Mon, 27 Jul 2020 11:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876020; cv=none; d=google.com; s=arc-20160816; b=PnNlqaMNwrk95Yiu7BAMGBRBnzcmy1rsFbULWPDTb7gFi846iONPKXS9AQaUSHsjso 4Yn5+a/y6vfK2O9H9GbDg8QKA8CTEQCpCFQdvQf4mFn8VwEKOj7SOOLJiFAHj0G05OcY QmMcqyrwM0XM5ZgBhHh2NUAhleus+omsx2U5O/J5GYOzR9RHqRWRPaFJa78S4wPXyImT yjDi5fF/9In+BUoNBy/8x41h3WdZD0i0jXpL/cfv4/O7khC7ZcUKr9DUO2nNbRHTShmO Mhl7xgQXQLa44+Oj/y9zJSPIbqCjgDUr+gyTbrL0xidtfplbtW26Us3QxVRvcSH7Xiwj rZGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=khppo+jLs5IKVg2WuNWXQuRn+S2GoJzKfqbAxy/nNiY=; b=JEVvoedErfL5CTcWnQFyn5/utoVdGOVdVoV11boHvwYVmNaQSdkz2IInqgAKuXESrH 7gYSXIsHzvCWUvZVEYZvN/SH7i1DSN7IMKXQAqNiRqhe1/UKRmeGv5f1illsCP8Gbmba 0pBaD5EHjWqW28FOMF1Wr3brv2ionuezZN75/4fk3XH2xyBKDIGHpJM4AABOKmKfXeaa t4RykgKXYmATlQR2oIIW8sV8JsmTPQttd4+RFQlJmN6rpRKif6Eaqe8jDCibZkB50fTz F7yxKJ0toVPeLdmOdW8q3TGrJVpF7TzK+2rog0t9+i7aMfYCWxeeeDwK17wGUq385nab fYpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oux8HQ9Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d9si5839197edv.44.2020.07.27.11.53.18; Mon, 27 Jul 2020 11:53:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oux8HQ9Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729472AbgG0Q76 (ORCPT + 99 others); Mon, 27 Jul 2020 12:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727915AbgG0Q75 (ORCPT ); Mon, 27 Jul 2020 12:59:57 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB17DC061794; Mon, 27 Jul 2020 09:59:56 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id b13so10283572edz.7; Mon, 27 Jul 2020 09:59:56 -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; bh=khppo+jLs5IKVg2WuNWXQuRn+S2GoJzKfqbAxy/nNiY=; b=oux8HQ9ZJE0ipaTs9n4SlEY/8I4Cssg4G2BaFvd1iGGaD2ZUJKZJeoirsGmVqN9Q1g LggBxRc8tAFSWrS8OC/qjr/52h1mqqRyddm006T3Ue2T0s8IHfVWriH5Hi2LWm4F3rZ5 FgQHf3Ydv6qwr84pnVnwnGDL01QAqeYwkOF9X3AYCIkUrc8451qzNiOynvuiXIy4Cy7y nrWrKc3pkzViTxqOGT7f2KmMAEa5bO2mbMDXiLlig+6IHOXroWXhkPtxB/A6jhp1doPM XDVSTvug5Y4B1hiQiRP6T8uNotD9wt2v3QIX88H4G6XpN7O2vrpbVd4rz3VpZlByFuZ2 GGkA== 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; bh=khppo+jLs5IKVg2WuNWXQuRn+S2GoJzKfqbAxy/nNiY=; b=b9UCko7lXQZGqK2zi69nvm4wfgHDDDlGFM3MV9GjN/yYYURxD8zTz5DZtWz7ErwZPV +yTu6hyfjwwVLUTUgf+5M1JOoWcIEZP3H7y/2bBZqJtPvXWOaLsHnsDY0BZnWafnY1yL +UcKeaOJBTGxS/oIoq5hql2eke4IPAuzMHmtjS3GyH6AeaxB+iRO91W3jsaWOBiVXYoE 1EimYqkKZ2rWg80KC0+nqEyLCvuruV+IfnfW8eyaxgiTcINGjmOWB3pRV6Mh7ghh3IeR iVc38vqbnvvgUzRJ8DRcszDUEXRjmShcsywcmuVJZoHdIp9oMQ7f4qMrAHPicydokddG D45w== X-Gm-Message-State: AOAM5307w617tX8mKpLwZpzCvA0YGF3KyqZr+tJH9OcFqvGG+5d7VVBb 33J1k23XrBY2AeAEIO1YRzqZ8sKr26RW4TQSxS9nShpz61Y= X-Received: by 2002:aa7:d90f:: with SMTP id a15mr21464035edr.86.1595869195512; Mon, 27 Jul 2020 09:59:55 -0700 (PDT) MIME-Version: 1.0 References: <20200628070152.820311-1-ebiggers@kernel.org> <20200727165000.GH1138@sol.localdomain> In-Reply-To: <20200727165000.GH1138@sol.localdomain> From: Ryusuke Konishi Date: Tue, 28 Jul 2020 01:59:43 +0900 Message-ID: Subject: Re: [PATCH] nilfs2: only call unlock_new_inode() if I_NEW To: Eric Biggers Cc: linux-nilfs , linux-fsdevel@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yeah, I sent this to Andrew a little while ago: https://lkml.org/lkml/2020/7/27/976 Thanks, Ryusuke Konishi On Tue, Jul 28, 2020 at 1:50 AM Eric Biggers wrote: > > On Sun, Jun 28, 2020 at 12:01:52AM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > unlock_new_inode() is only meant to be called after a new inode has > > already been inserted into the hash table. But nilfs_new_inode() can > > call it even before it has inserted the inode, triggering the WARNING in > > unlock_new_inode(). Fix this by only calling unlock_new_inode() if the > > inode has the I_NEW flag set, indicating that it's in the table. > > > > Signed-off-by: Eric Biggers > > Ping. Ryusuke, any interest in taking this patch? > > - Eric