From: Trond Myklebust Subject: Re: [topic proposal] dealing with ->d_revalidate() right ways (automounting, atomic opens and the whole mess around that) Date: Mon, 14 Jun 2010 10:40:04 -0400 Message-ID: <1276526404.21491.2.camel@heimdal.trondhjem.org> References: <20100609021940.GW31073@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: lsf10-pc@lists.linuxfoundation.org, linux-fsdevel@vger.kernel.org To: Al Viro Return-path: Received: from mx2.netapp.com ([216.240.18.37]:16601 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335Ab0FNOkT convert rfc822-to-8bit (ORCPT ); Mon, 14 Jun 2010 10:40:19 -0400 In-Reply-To: <20100609021940.GW31073@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, 2010-06-09 at 03:19 +0100, Al Viro wrote: > That's going to be the next big change of VFS architecture; bits > and pieces had been discussed on lists and in private mail, but it would > be really useful to sit down and discuss that face to face with everyone > involved. > > * ->follow_link() is abused for triggering submounts. > * ->d_revalidate() is abused in many, _many_ ways, including > autofs, NFS "reval_dot" stuff, atomic opens, etc. Moreover, it has nasty > interplay with crossing mountpoints. > * NFS handling of atomic opens is near the point where we can > switch to methods that would get proper arguments directly, rather > than abusing ->lookup/->d_revalidate/whatnot. Again, ->d_revalidate > and mountpoint crossing are stumbling blocks. And NFS4 bits around > open are just plain scary... > * NFSv4 has rather unpleasant stuff in submount handling - what > it does with ->mnt_devname doesn't bear describing in polite company and > it actually doesn't work right with mount --bind (moderately) and > mountinfo contents (completely). Both issues are fixable and that gets > entangled into the aforementioned ball of barbed wire... > > Who might want to be there: nfsd/nfs/cifs/afs/autofs4 and general > VFS-interested folks. > -- I second. It would be great to clean all this up and get rid of the intents stuff. Al and I started the discussion last year, but it would be useful to include a larger audience. Cheers Trond