linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Waychison <mike@waychison.com>
To: Ian Kent <raven@themaw.net>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	linux-fsdevel@vger.kernel.org, jamie@shareable.org,
	viro@parcelfarce.linux.theplanet.co.uk
Subject: Re: [RFC][PATCH 1/8] namespace: use global namespace semaphore
Date: Fri, 03 Jun 2005 10:26:06 -0700	[thread overview]
Message-ID: <42A092AE.6080704@waychison.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0506011158420.10849@wombat.indigo.net.au>

Ian Kent wrote:
> On Tue, 31 May 2005, Miklos Szeredi wrote:
> 
> 
>>>namespace->sem did indeed surround the mounting and unmounting
>>>processes, however it never was meant to protect the integrety of the
>>>vfsmount tree, only namespace->list.
>>
>>I'm not sure about that.  The copy_tree() function relies on the tree
>>not chaning underneeth, and that's why it's called with
>>namespace->sem.  And vfsmount_lock can't be used, because copy_tree()
>>can sleep on allocations.
>>
>>
>>>>Maybe lookup_mnt shouldn't be static and should be exported instead?
>>>>
>>>
>>>lookup_mnt is the wrong operation, as it looks for a mountpoint given a
>>>vfsmount and dentry.  What you need is a way to walk the tree, and I'm
>>>inclined to say that something like next_mnt is what you are looking for.
>>
>>Can someone explain, why autofs needs to walk the mount tree?
> 
> 
> I generally don't need to walk the vfsmount tree except during expire (ref 
> may_umount_tree in namespace.c). What I find is that I often need to 
> locate a sibling vfsmount given a parent and a dentry (aka. lookup_mnt). 
> This is because, after a mount is triggered (the daemon is notified and 
> does the mount) I need it in order to follow it. I expect Mike has similar 
> needs.
> 

I handle this in the vfs layer due to it's hairyness and the fact that 
other filesystems may want to use it (samba, afs, autofs4, basically 
anything that wants to automount things from kernelspace).

Mike Waychison

  parent reply	other threads:[~2005-06-03 17:26 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-30 13:19 [RFC][PATCH 1/8] namespace: use global namespace semaphore Miklos Szeredi
2005-05-31  2:58 ` Ian Kent
2005-05-31  3:23   ` Mike Waychison
2005-05-31  7:02     ` Ian Kent
2005-05-31  7:56       ` Miklos Szeredi
2005-05-31  9:34         ` Ian Kent
2005-05-31 10:05           ` Miklos Szeredi
2005-05-31 10:13             ` Miklos Szeredi
2005-05-31 15:43               ` Mike Waychison
2005-06-01  5:04               ` Ian Kent
2005-06-01  8:35                 ` Miklos Szeredi
2005-06-03  2:10                   ` Ian Kent
2005-06-03  5:28                     ` Miklos Szeredi
2005-06-04  4:13                       ` raven
2005-06-04  6:32                         ` Miklos Szeredi
2005-06-04  6:50                           ` raven
2005-06-04  7:20                             ` Miklos Szeredi
2005-06-04  7:27                               ` raven
2005-06-03 17:22                     ` Mike Waychison
2005-06-04  4:32                       ` raven
2005-06-03 17:13               ` Mike Waychison
2005-06-03 18:20                 ` Miklos Szeredi
2005-06-01  4:36             ` Ian Kent
2005-06-03 17:24               ` Mike Waychison
2005-06-04  4:38                 ` raven
2005-05-31 15:55       ` Mike Waychison
2005-05-31 16:08         ` Miklos Szeredi
2005-06-01  4:18           ` Ian Kent
2005-06-01  8:28             ` Miklos Szeredi
2005-06-03  2:23               ` Ian Kent
2005-06-03  5:18                 ` Miklos Szeredi
2005-06-04  4:53                   ` raven
2005-06-04  6:57                     ` Miklos Szeredi
2005-06-04  7:13                       ` raven
2005-06-03 17:26             ` Mike Waychison [this message]
2005-06-01  3:57         ` Ian Kent
2005-06-03 17:07           ` Mike Waychison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42A092AE.6080704@waychison.com \
    --to=mike@waychison.com \
    --cc=jamie@shareable.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=raven@themaw.net \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).