Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp700940yba; Thu, 18 Apr 2019 08:11:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqxl8h2+Ck8QgK4k/qzdjbIifkamTy4Z+WCRBbHbHeOJFjq1NVdWRc1c1PMQl6TN8xfoia X-Received: by 2002:a17:902:525:: with SMTP id 34mr84280670plf.138.1555600289080; Thu, 18 Apr 2019 08:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555600289; cv=none; d=google.com; s=arc-20160816; b=LjNgoGGQNTtrMqJctYpHzBkDhYlRJVJvWEOipqhDLWiz+8zQCYFpH5feUYXiyBXXyb O+iqPkLppB2WIr0+PVs5/hcE4l6VepPjlj9gqW5/icDLnL6wyH5RD3NUOUTKpJOT5C4j pCYpp4W2aRrCc7qTzbDmQZdYxPYFcwv6Lh3dIlYUnIpJJdYozItNoSAo4ucwDi9+R0RK 0wGHVV+Bkz+hOsi44qzjPRz0B8Imh3BwDY5/Q8zTKYem8xbMZMMPS47yCIt4W9BkceTQ hdlPYPsw5bHF4m15fpFAm/1VeBVnUz02PACLS70FN9mwUL4aj9xztDn5yTtldgB4bXmu eE0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dSk5k9fsbpZXeMz/+aaEgP1TSk775jhJj8+Zyh7HkDg=; b=EU5ZPt5gUyaLkgx+Qf7Y4uS1CWh9QfwwISThZFTVXjvuTYG9KosdnCdfNDNva//Tvl NGFZ+C6QqromVaRMwJqth06y5JxXaW3QV4dWnzIAXKK+rb7oO7IUShJtyk8NupFtLPci CNL/tv8KvJK1T1s0ewlwM8UbnbO9QccnOjfG0D9rTiLMhxDSM2j8Zd/ZegaKu+FZB7z0 ++qpFyNsbD7C+kSdtSxsifiUQbTspuswizkngfLFuGF6m+sjXJXGX8hcqAuw4vOmX+54 T0h84BIAtRTwQE77prb4U/9Y53KFUJjOUAjtv8bFxzmP+/4AlIzCWVaceEo49w82kiG5 l4pQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si2018818pgv.128.2019.04.18.08.11.13; Thu, 18 Apr 2019 08:11:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389488AbfDRPIn (ORCPT + 99 others); Thu, 18 Apr 2019 11:08:43 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:36734 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388457AbfDRPIn (ORCPT ); Thu, 18 Apr 2019 11:08:43 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hH8eQ-0006DN-1x; Thu, 18 Apr 2019 15:08:34 +0000 Date: Thu, 18 Apr 2019 16:08:34 +0100 From: Al Viro To: David Howells Cc: Theodore Ts'o , Andreas Dilger , linux-ext4@vger.kernel.org, linux-afs@lists.infradead.org, linux-ntfs-dev@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 5/6] ext4: Search for an inode to update under the RCU lock if we can Message-ID: <20190418150833.GE2217@ZenIV.linux.org.uk> References: <155559635133.21702.4737487773869377967.stgit@warthog.procyon.org.uk> <155559640398.21702.15109713276957584268.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155559640398.21702.15109713276957584268.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 03:06:44PM +0100, David Howells wrote: > + inode = find_inode_by_ino_rcu(sb, ino); > + if (!inode) > + return; > > if ((inode->i_ino != ino) || > (inode->i_state & (I_FREEING | I_WILL_FREE | I_NEW | > I_DIRTY_INODE)) || > ((inode->i_state & I_DIRTY_TIME) == 0)) Umm... The situation with memory barriers here needs to be documented, IMO. And I'm not sure if the thing is actually correct...