The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: LKML <linux-kernel@vger.kernel.org>, mingo@kernel.org
Subject: Re: task_work_add/scheduler_tick: possible circular locking dependency detected
Date: Mon, 01 Oct 2012 12:50:39 +0200	[thread overview]
Message-ID: <1349088639.7780.4.camel@twins> (raw)
In-Reply-To: <20120928113402.GA577@localhost>

On Fri, 2012-09-28 at 19:34 +0800, Fengguang Wu wrote:
> Peter,
> 
> I got the warning
> 
> [   10.412023] 
> [   10.412611] ======================================================
> [   10.413014] [ INFO: possible circular locking dependency detected ]
> [   10.413014] 3.6.0-rc4-00098-g7eaffe9 #402 Not tainted
> [   10.413014] -------------------------------------------------------
> [   10.413014] init/1 is trying to acquire lock:
> [   10.413014]  (&p->pi_lock){-.-.-.}, at: [<ffffffff81088214>] task_work_add+0x28/0x82
> [   10.413014] 
> [   10.413014] but task is already holding lock:
> [   10.413014]  (&rq->lock){-.-.-.}, at: [<ffffffff8109c6ea>] scheduler_tick+0x3f/0xec
> [   10.413014] 
> [   10.413014] which lock already depends on the new lock.
> [   10.413014] 
> [   10.413014] 
> 

The commit ac3d0da8f3290b3d394cdb7f50604424a7cd6092 should avoid this
from happening, not sure what branch its on, but it was in tip before
all this landed, so I guess its due to you testing sched/numa branch and
not a merged branch like master or auto-next.



  reply	other threads:[~2012-10-01 10:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 11:34 task_work_add/scheduler_tick: possible circular locking dependency detected Fengguang Wu
2012-10-01 10:50 ` Peter Zijlstra [this message]
2012-10-01 11:59   ` Fengguang Wu
2012-10-01 12:05     ` Ingo Molnar
2012-10-01 12:14       ` Fengguang Wu

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=1349088639.7780.4.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=fengguang.wu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.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