From mboxrd@z Thu Jan 1 00:00:00 1970 From: "hch@infradead.org" Subject: Re: [PATCH -V14 0/11] Generic name to handle and open by handle syscalls Date: Fri, 2 Jul 2010 03:05:48 -0400 Message-ID: <20100702070548.GA6959@infradead.org> References: <1276621981-2774-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <871vbn2mk9.fsf@linux.vnet.ibm.com> <20100702064108.64034561@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Neil Brown , "Aneesh Kumar K. V" , "hch@infradead.org" , "viro@zeniv.linux.org.uk" , "adilger@sun.com" , "corbet@lwn.net" , "serue@us.ibm.com" , "hooanon05@yahoo.co.jp" , "bfields@fieldses.org" , "linux-fsdevel@vger.kernel.org" , "sfrench@us.ibm.com" , "philippe.deniel@CEA.FR" , "linux-kernel@vger.kernel.org" To: Andreas Dilger Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Jul 01, 2010 at 10:02:29PM -0600, Andreas Dilger wrote: > I'd like to be able to use this interface to implement the distributed open call proposed by the POSIX HECWG. This allows one client to do the path traversal, broadcast the file handle to the (maybe) 1M processes in the job via MPI, and then the other clients can open the file by handle without doing 1M times the full path traversal (which might be 10's of RPCs per process). The proposal is doomed anyway. If we allow any sort of open by handle system call for unprivilegued users we need to do reconnect the dentry to the dcache path anyway (reconnect_path), which is more expensive than a normal path lookup.