login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
21
Re: [patch 3/6] vfs: mountinfo stable peer group id
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Miklos Szeredi <miklos@...>
To: <viro@...>
Cc: <miklos@...>, <akpm@...>, <linuxram@...>, <linux-fsdevel@...>, <linux-kernel@...>, <Trond.Myklebust@...>, <dhowells@...>
Subject:
Re: [patch 3/6] vfs: mountinfo stable peer group id
Date: Friday, March 21, 2008 - 4:57 am
> IOW, mark_mounts_for_expiry() should do the following:
quoted text
> grabbing namespace_sem exclusive > grab vfsmount_lock > walk the list as it does now, except that it should do the right > check from the very beginning (propagate_mount_busy()) > without dropping the vfsmount_lock, go through the collected list, > calling umount_tree() > drop the locks > do release_mounts() > The second pass is needed since umount_tree() might do interesting things > to expiry list, so we make life easier for ourselves by leaving that to > second pass when we just want to drain the resulting list until it's empty. > > Does anybody see holes in the above? > > shrink_submounts() is _probably_ similar (lock/collect/umount_tree on all/ > unlock/release_mounts), but I'm not sure if I understand WTF is really > attempted in there. > > Is there any reason why we do that in ->umount_begin() and not *after* > it, unconditionally, straight from do_umount()? AFAICS, the only reason > why it's done from fs-specific code is figuring out which mount-list > should the stuff go back to, and that's both broken *and* not needed > with sanitized locking as above. While we are at it, I'd rather return > ->umount_begin() to its previous prototype, TYVM - the less filesystem > sees vfsmounts, the better off we all are...
All of that seems sane to me. Miklos --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 3/6] vfs: mountinfo stable peer group id
, Miklos Szeredi
, (Thu Mar 13, 5:26 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Wed Mar 19, 7:48 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Miklos Szeredi
, (Wed Mar 19, 12:41 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Wed Mar 19, 2:20 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Miklos Szeredi
, (Wed Mar 19, 2:37 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Sat Mar 22, 12:27 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Ram Pai
, (Mon Mar 24, 4:19 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Mon Mar 24, 5:34 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Thu Mar 20, 5:43 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Miklos Szeredi
, (Fri Mar 21, 4:57 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Fri Mar 21, 11:49 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Sat Mar 22, 12:11 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Ram Pai
, (Sun Mar 30, 3:33 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Sat Mar 22, 12:56 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Fri Mar 21, 11:54 pm)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Ram Pai
, (Mon Mar 24, 4:50 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Al Viro
, (Mon Mar 24, 5:53 am)
Re: [patch 3/6] vfs: mountinfo stable peer group id
, Christoph Hellwig
, (Mon Mar 24, 4:54 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Andrew Morton
2.6.23-rc6-mm1
Eric Paris
[RFC 0/5] [TALPA] Intro to a linux interface for on access scanning
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
724 guests
online.
Online users
huntairtuz
miguel87889
Syndicate