From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Joao Correia <joaomiguelcorreia@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Amerigo Wang <xiyou.wangcong@gmail.com>
Subject: Re: [PATCH 2/3] Increase lockdep limits: MAX_LOCK_DEPTH
Date: Tue, 07 Jul 2009 17:29:52 +0200 [thread overview]
Message-ID: <1246980592.9777.0.camel@twins> (raw)
In-Reply-To: <a5d9929e0907070825q41de40eeo5e337a4885615909@mail.gmail.com>
On Tue, 2009-07-07 at 16:25 +0100, Joao Correia wrote:
> (Applies to current Linus tree, as of 2.6.31-rc2)
>
> As a result of increasing MAX_STACK_TRACE_ENTRIES on the previous
> patch, another limit surfaced as being hit too soon.
> This patch increases MAX_LOCK_DEPTH, being hit by false positives, and
> turning off the locking correctness validator.
>
> The new value is arbitrary, but I believe the old one was too. Given
> the amount of changes happening with regards to the usage of lockdep,
> the previous limit is just too low and keeping it that way would
> defeat the purpose of lockdep.
>
>
> Signed-off-by: Joao Correia <joaomiguelcorreia@gmail.com>
NAK, find the site that triggers this and fix it. holding more than 48
locks at any one time is silly.
> ---
> include/linux/sched.h | 2 +-
> 1 files changes, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index 0085d75..304231b 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -1367,7 +1367,7 @@ struct task_struct {
> int softirq_context;
> #endif
> #ifdef CONFIG_LOCKDEP
> -# define MAX_LOCK_DEPTH 48UL
> +# define MAX_LOCK_DEPTH 96UL
> u64 curr_chain_key;
> int lockdep_depth;
> unsigned int lockdep_recursion;
> ---
next prev parent reply other threads:[~2009-07-07 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 15:25 Joao Correia
2009-07-07 15:29 ` Peter Zijlstra [this message]
2009-07-07 15:36 ` Joao Correia
2009-07-07 15:41 ` Peter Zijlstra
2009-07-07 15:46 ` Joao Correia
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=1246980592.9777.0.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=joaomiguelcorreia@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
/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®