From: Ingo Molnar <mingo@elte.hu>
To: Brian King <brking@linux.vnet.ibm.com>
Cc: a.p.zijlstra@chello.nl, efault@gmx.de, vatsa@in.ibm.com,
balbir@linux.vnet.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] sched: CPU remove deadlock fix
Date: Tue, 9 Dec 2008 19:27:24 +0100 [thread overview]
Message-ID: <20081209182724.GB21698@elte.hu> (raw)
In-Reply-To: <200812091548.mB9Fm0sm011959@d01av04.pok.ibm.com>
* Brian King <brking@linux.vnet.ibm.com> wrote:
> This patch fixes a possible deadlock scenario in the CPU remove path.
> migration_call grabs rq->lock, then wakes up everything on
> rq->migration_queue with the lock held. Then one of the tasks on the
> migration queue ends up calling tg_shares_up which then also tries to
> acquire the same rq->lock.
>
> [c000000058eab2e0] c000000000502078 ._spin_lock_irqsave+0x98/0xf0
> [c000000058eab370] c00000000008011c .tg_shares_up+0x10c/0x20c
> [c000000058eab430] c00000000007867c .walk_tg_tree+0xc4/0xfc
> [c000000058eab4d0] c0000000000840c8 .try_to_wake_up+0xb0/0x3c4
> [c000000058eab590] c0000000000799a0 .__wake_up_common+0x6c/0xe0
> [c000000058eab640] c00000000007ada4 .complete+0x54/0x80
> [c000000058eab6e0] c000000000509fa8 .migration_call+0x5fc/0x6f8
> [c000000058eab7c0] c000000000504074 .notifier_call_chain+0x68/0xe0
> [c000000058eab860] c000000000506568 ._cpu_down+0x2b0/0x3f4
> [c000000058eaba60] c000000000506750 .cpu_down+0xa4/0x108
> [c000000058eabb10] c000000000507e54 .store_online+0x44/0xa8
> [c000000058eabba0] c000000000396260 .sysdev_store+0x3c/0x50
> [c000000058eabc10] c0000000001a39b8 .sysfs_write_file+0x124/0x18c
> [c000000058eabcd0] c00000000013061c .vfs_write+0xd0/0x1bc
> [c000000058eabd70] c0000000001308a4 .sys_write+0x68/0x114
> [c000000058eabe30] c0000000000086b4 syscall_exit+0x0/0x40
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
> ---
>
> kernel/sched.c | 2 ++
> 1 file changed, 2 insertions(+)
good catch - applied to tip/sched/urgent, thanks Brian!
Ingo
prev parent reply other threads:[~2008-12-09 18:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-09 14:47 Brian King
2008-12-09 14:52 ` Peter Zijlstra
2008-12-09 14:59 ` Peter Zijlstra
2008-12-09 15:11 ` Peter Zijlstra
2008-12-09 15:14 ` Brian King
2008-12-09 15:07 ` Brian King
2008-12-09 18:12 ` Heiko Carstens
2008-12-09 18:27 ` Ingo Molnar
2008-12-09 18:27 ` Ingo Molnar [this message]
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=20081209182724.GB21698@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=balbir@linux.vnet.ibm.com \
--cc=brking@linux.vnet.ibm.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=vatsa@in.ibm.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®