login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
19
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@...>
Subject:
Re: [patch 3/6] vfs: mountinfo stable peer group id
Date: Wednesday, March 19, 2008 - 2:37 pm
> > > > From: Miklos Szeredi <mszeredi@suse.cz>
quoted text
> > > Um? Do you ever need to take it outside of vfsmount_lock? > > > > > > > Tried to think this through: > > > > It's always called with namespace_sem, which is enough, no need for a > > new lock. The bigger problem, is that it _is_ called with > > vfsmount_lock in one case, which is bad, since the allocation may > > sleep. > > It is called with vfsmount_lock in *all* cases. You've missed one > in umount_tree(), BTW; you won't block in that case, though.
set_mnt_shared() is called from namespace.c as well, without vfsmount_lock. But agreed, that's not the real issue.
quoted text
> > > That is in do_change_type(). But do we really need to hold > > vfsmount_lock in that case? > > Not the issue. > > > I think not, the propagation tree has no > > relevance outside namespace_sem, so that one should be sufficient. > > Callers manipulate more than propagation tree. Note that e.g. > umount_tree() changes all sorts of data structures, including ones > that are traversed without namespace_sem. > > I _really_ don't like the idea of different locking rules for caller > of a function depending on the value of argument of that function. > They are complicated enough as it is. > > Argh... OK, I'll try to put something together tonight, after I get some > sleep - 31 hours of uptime _suck_ ;-/
Gosh, yes. Thanks, 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
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Heiko Carstens
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Tony Lindgren
[PATCH 37/90] ARM: OMAP: MPUIO wake updates
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Benjamin Herrenschmidt
Re: powerpc allmodconfig
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
816 guests
online.
Online users
billprice73
Syndicate