Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp671966pxu; Wed, 14 Oct 2020 10:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMSkjAlkQEHXNVzNpVfU7EyLrfF8mODPb5ppFzhDUfCJ3V6KCuhp8e9IemP+MMXkKZrdsv X-Received: by 2002:a50:c38e:: with SMTP id h14mr30153edf.174.1602697171650; Wed, 14 Oct 2020 10:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602697171; cv=none; d=google.com; s=arc-20160816; b=bjKnJR0ROtobpw53vsoiQkgn8AgPKG4jhe3lTAkW/Jv4Xqjlt8IRRMlRcBgyGkMqBF IUDJv1cNfhQAyB05KJbrvkdhuPMCgAzz/JjaVFy1JmQ6BCwmLK4kmKsmB8xo6UHwriJY npYlQUc1Ln7+UZx1yaoLt1TUcKBNaHJUgiSiuMNUvVs9TTgUeiGtsOMwVHpTHqMsvtYp /jWvMR+LLCUyRANvC06nsv/1mdgr6IOKuiqcGcZeD5qAziQoyJdjKsIIzdNstJtlAUBA Ei2z/WATNrPdA0DqOca0+TK0SYmFfCGUcoWiL6GsLl0whav91BB/YXF2eXp6CA5B614F r41g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qx2zX2eqwC0xOwWee5VO5ne7+ikclJJTHK4UnrIHfbA=; b=Cu0m4TxOjsAJU50nw86u6a8+aEhpEwg1lZGqP6taTcLKlrH3eEZO/C8GcyvPgqfluS xMYvUDg6md52LV9MVQwq/wS3zh2pT/LrDEN5BBY5X1W7YtBtqrS9d/xc5LfLPZ2e9535 joXRowy8wpHCDR2eT2mDuwkw5ezwfhu/+ypfeudFzX9/KeIY1+aN7AygZM3vAhvI5Ta8 969QeYA/zr6nvwtrVQ6wOeBhgHLGJMPxKl3gcVX/RSS5ggs+VTTvXsgFR6bDwvrwk9Zz KU4Q0tqqCKeKytaZ+UVvUGw5XECIIpPuY8PiAWWJ5erfPBzQvx+5A990buRFZjwNMHof DtUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si242659ejr.747.2020.10.14.10.39.01; Wed, 14 Oct 2020 10:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbgJNPuJ (ORCPT + 99 others); Wed, 14 Oct 2020 11:50:09 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:35502 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726439AbgJNPuJ (ORCPT ); Wed, 14 Oct 2020 11:50:09 -0400 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 09EFmwME024420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Oct 2020 11:48:59 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 8F375420107; Wed, 14 Oct 2020 11:48:58 -0400 (EDT) Date: Wed, 14 Oct 2020 11:48:58 -0400 From: "Theodore Y. Ts'o" To: Lukas Czerner Cc: xiakaixu1987@gmail.com, linux-ext4@vger.kernel.org, adilger.kernel@dilger.ca, Kaixu Xia Subject: Re: [RFC PATCH] ext4: use the normal helper to get the actual inode Message-ID: <20201014154858.GC18373@mit.edu> References: <1602317416-1260-1-git-send-email-kaixuxia@tencent.com> <20201012093304.aevqpvq5sotzamrq@work> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201012093304.aevqpvq5sotzamrq@work> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Oct 12, 2020 at 11:33:04AM +0200, Lukas Czerner wrote: > On Sat, Oct 10, 2020 at 04:10:16PM +0800, xiakaixu1987@gmail.com wrote: > > From: Kaixu Xia > > > > Here we use the READ_ONCE to fix race conditions in ->d_compare() and > > ->d_hash() when they are called in RCU-walk mode, seems we can use > > the normal helper d_inode_rcu() to get the actual inode. > > Looks good to me. > Thanks! > > Reviewed-by: Lukas Czerner Thanks, applied. - Ted