login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
20
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lockdep-friendly
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Arjan van de Ven <arjan@...>
To: Joel Becker <Joel.Becker@...>
Cc: Louis Rilling <Louis.Rilling@...>, <linux-kernel@...>, <ocfs2-devel@...>
Subject:
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lockdep-friendly
Date: Tuesday, May 20, 2008 - 6:13 pm
On Tue, 20 May 2008 14:56:39 -0700 Joel Becker <Joel.Becker@oracle.com> wrote:
quoted text
> On Tue, May 20, 2008 at 09:58:10AM -0700, Arjan van de Ven wrote: > > On Tue, 20 May 2008 18:33:20 +0200 > > Louis Rilling <Louis.Rilling@kerlabs.com> wrote: > > > > > The following patches fix lockdep warnings resulting from > > > (correct) recursive locking in configfs. > > > > > > ... > > > > > > Since lockdep does not handle such correct recursion, the idea is > > > to insert lockdep_off()/lockdep_on() for inode mutexes as soon as > > > the level of recursion of the I_MUTEX_PARENT -> I_MUTEX_CHILD > > > dependency pattern increases. > > > > I'm... not entirely happy with such a solution ;( > > > > there must be a better one. > > We're trying to find it. I really appreciate Louis taking the > time to approach the issue. His first pass was to add 1 to > MUTEX_CHILD for each level of recursion. This has a very tight limit > (4 or 5 levels), but probably covers all users that exist and perhaps > all that ever will exist. However, it means passing the lockdep > annotation level throughout the entire call chain across multiple > files. It was definitely less readable. > This approach takes a different tack - it's very readable, but > it assumes that the currently correct locking will always remain so - > a particular invariant that lockdep exists to verify :-) > Louis, what about sticking the recursion level on > configfs_dirent? That is, you could add sd->s_level and then use it > when needed. THis would hopefully avoid having to pass the level as > an argument to every function. Then we can go back to your original > scheme. If they recurse too much and hit the lockdep limit, just > rewind everything and return -ELOOP.
you can also make a new lockdep key for each level... not pretty but it works --
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:
[RFC][PATCH 0/3] configfs: Make nested default groups lockde...
, Louis Rilling
, (Tue May 20, 12:33 pm)
Re: [Ocfs2-devel] [RFC][PATCH 0/3] configfs: Make nested def...
, Joel Becker
, (Tue May 20, 5:41 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Arjan van de Ven
, (Tue May 20, 12:58 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Joel Becker
, (Tue May 20, 5:56 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Louis Rilling
, (Wed May 21, 4:13 am)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Arjan van de Ven
, (Tue May 20, 6:13 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Peter Zijlstra
, (Wed May 21, 5:23 am)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Louis Rilling
, (Wed May 21, 6:25 am)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Peter Zijlstra
, (Wed May 21, 6:59 am)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Joel Becker
, (Wed May 21, 6:09 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Louis Rilling
, (Wed May 21, 8:54 am)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Joel Becker
, (Tue May 20, 6:27 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Arjan van de Ven
, (Tue May 20, 6:35 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Joel Becker
, (Tue May 20, 7:51 pm)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Peter Zijlstra
, (Wed May 21, 5:20 am)
Re: [RFC][PATCH 0/3] configfs: Make nested default groups lo...
, Louis Rilling
, (Tue May 20, 1:08 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Andrew Morton
2.6.25-mm1
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
564 guests
online.
Online users
strcmp
Syndicate