Re: [RFC PATCH] file as directory

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Szeredi <miklos@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>, <akpm@...>, <torvalds@...>
Date: Wednesday, May 23, 2007 - 11:06 am

On Wed, May 23, 2007 at 04:32:37PM +0200, Miklos Szeredi wrote:
 
Here the spinlock is needed only when mnt_busy goes to 0, so presumably
it won't be a serious problem on more or less common setups; however,
it certainly would need serious profiling.


Easy - grab namespace_sem, grab vfsmount_lock, walk the subtree and bump
mnt_busy on everything (by 1 + number of non-busy children).  Then drop
vfsmount_lock and do as usual, dropping references in tree being copied
as you go.  Nothing will get attached or detached due to namespace_sem,
nothing will get evicted by anybody other than you since you've got all
that stuff pinned down.  End of story...
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH] file as directory, Miklos Szeredi, (Tue May 22, 2:48 pm)
Re: [RFC PATCH] file as directory, Jaroslav Sykora, (Wed May 23, 9:20 am)
Re: [RFC PATCH] file as directory, Jan Engelhardt, (Wed May 23, 8:01 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 5:51 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:09 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:24 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 6:24 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:40 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 7:39 am)
Re: [RFC PATCH] file as directory, Ph. Marek, (Wed May 23, 9:23 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 9:54 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 8:16 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 9:01 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 9:51 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 10:32 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 11:06 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 11:25 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 11:37 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 11:55 am)
Re: [RFC PATCH] file as directory, Shaya Potter, (Tue May 22, 7:26 pm)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 2:39 am)
Re: [RFC PATCH] file as directory, Al Viro, (Tue May 22, 6:10 pm)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 2:36 am)
Re: [RFC PATCH] file as directory, Pavel Machek, (Thu May 24, 8:07 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Mon May 28, 10:43 am)
Re: [RFC PATCH] file as directory, Jan Blunck, (Wed May 23, 5:21 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 5:35 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 3:03 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 3:19 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 3:36 am)
Re: [RFC PATCH] file as directory, Trond Myklebust, (Wed May 23, 8:34 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 8:40 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 4:05 am)
Re: [RFC PATCH] file as directory, Jan Blunck, (Wed May 23, 5:16 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 5:28 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 4:29 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 5:03 am)
Re: [RFC PATCH] file as directory, Al Viro, (Wed May 23, 5:58 am)
Re: [RFC PATCH] file as directory, Miklos Szeredi, (Wed May 23, 6:14 am)