From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753647AbdAEQVM (ORCPT ); Thu, 5 Jan 2017 11:21:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35266 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751920AbdAEQVC (ORCPT ); Thu, 5 Jan 2017 11:21:02 -0500 From: "Benjamin Coddington" To: "Alexander Viro" Cc: "Anna Schumaker" , "Trond Myklebust" , "Linux NFS Mailing List" , "Linux FS-devel Mailing List" , "Linux Kernel Mailing List" Subject: Re: [PATCH] NFS: switch back to ->iterate() Date: Thu, 05 Jan 2017 11:21:00 -0500 Message-ID: <66210EA3-EC68-49DA-865F-5068BDA24E8C@redhat.com> In-Reply-To: References: <0429a1fe130e635337b3103ee5fb1ea4c405fdaf.1481290848.git.bcodding@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 05 Jan 2017 16:21:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15 Dec 2016, at 17:40, Trond Myklebust wrote: >> On Dec 9, 2016, at 08:41, Benjamin Coddington >> wrote: >> @@ -519,13 +508,7 @@ void nfs_prime_dcache(struct dentry *parent, >> struct nfs_entry *entry) >> filename.hash = full_name_hash(parent, filename.name, filename.len); >> >> dentry = d_lookup(parent, &filename); >> -again: >> - if (!dentry) { >> - dentry = d_alloc_parallel(parent, &filename, &wq); >> - if (IS_ERR(dentry)) >> - return; >> - } >> - if (!d_in_lookup(dentry)) { >> + if (dentry != NULL) { > > This all looks like it is reverting to using an obsolete VFS API. > I’d > prefer an ACK from Al as to whether or not this is allowed. Please > note > that the rest of the lookup code is still parallelised. I should've made sure the revert wasn't going to jump back to older VFS usage. I'll go back over this to make sure that's not the case. Al, are you hoping to get rid of ->iterate completely? If so, better to work on this another way. Ben