From: "Remy Bohmer" <linux@bohmer.net>
To: "Peter Zijlstra" <peterz@infradead.org>
Cc: "Daniel Walker" <dwalker@mvista.com>,
"Ingo Molnar" <mingo@elte.hu>,
"Steven Rostedt" <rostedt@goodmis.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
"Dave Chinner" <dgc@sgi.com>
Subject: Re: lockdep problem conversion semaphore->mutex (dev->sem)
Date: Sat, 8 Dec 2007 21:55:54 +0100 [thread overview]
Message-ID: <3efb10970712081255k7ceec2bev4932512b2e1cda89@mail.gmail.com> (raw)
In-Reply-To: <1197147016.6353.53.camel@lappy>
Peter,
Thanks for this clear answer.
Remy
2007/12/8, Peter Zijlstra <peterz@infradead.org>:
>
> On Sat, 2007-12-08 at 21:33 +0100, Remy Bohmer wrote:
>
> > Which problems? I did not see any special things, it looked rather
> > straight forward. What have I overlooked?
>
> On suspend it locks the whole device tree, this means it has 'unbounded'
> nesting and holds an 'unbounded' number of locks. Neither things are
> easy to annotate (remember that mutex_lock_nested can handle up to 8
> nestings and current->held_locks has a max of 30).
>
> In fact, converting this will be the hardest part, it would require
> reworking the locking and introduction of a hard limit on the device
> tree depth - this might upset some people, but I suspect that 16 or 24
> should be deep enough for pretty much anything. Of course, if people
> prove me wrong, I'll have to reconsider. The up-side of the locking
> scheme I'm thinking of will be that locking the whole tree will only
> take 'depth' number of opterations vs the total number of tree elements.
>
>
>
> --
> 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/
>
next prev parent reply other threads:[~2007-12-08 20:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-07 23:02 Remy Bohmer
2007-12-08 12:16 ` Peter Zijlstra
2007-12-08 16:53 ` Daniel Walker
2007-12-08 17:11 ` Peter Zijlstra
2007-12-08 17:06 ` Daniel Walker
2007-12-08 17:36 ` Peter Zijlstra
2007-12-08 19:52 ` Remy Bohmer
2007-12-08 20:04 ` Peter Zijlstra
2007-12-08 20:33 ` Remy Bohmer
2007-12-08 20:50 ` Peter Zijlstra
2007-12-08 20:55 ` Remy Bohmer [this message]
2007-12-08 22:57 ` Jarek Poplawski
2007-12-08 20:08 ` Ingo Molnar
2007-12-08 20:48 ` Remy Bohmer
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=3efb10970712081255k7ceec2bev4932512b2e1cda89@mail.gmail.com \
--to=linux@bohmer.net \
--cc=dgc@sgi.com \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
/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
all inboxes | Powered by JetHome®