From: Sasha Levin <sasha.levin@oracle.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>, Mel Gorman <mgorman@suse.de>,
Rik van Riel <riel@redhat.com>, Dave Jones <davej@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: sched: spinlock recursion in migrate_swap_stop
Date: Wed, 21 May 2014 22:34:44 -0400 [thread overview]
Message-ID: <537D6244.6040106@oracle.com> (raw)
In-Reply-To: <20140521164959.GI5226@laptop.programming.kicks-ass.net>
On 05/21/2014 12:49 PM, Peter Zijlstra wrote:
> On Wed, May 21, 2014 at 03:19:48PM +0200, Peter Zijlstra wrote:
>> > On Wed, May 21, 2014 at 09:08:26AM -0400, Sasha Levin wrote:
>>> > > +++ b/kernel/sched/core.c
>>> > > @@ -1154,6 +1156,7 @@ int migrate_swap(struct task_struct *cur, struct task_struct *p)
>>> > > goto out;
>>> > >
>>> > > trace_sched_swap_numa(cur, arg.src_cpu, p, arg.dst_cpu);
>>> > > + BUG_ON(cur == p);
>>> > > ret = stop_two_cpus(arg.dst_cpu, arg.src_cpu, migrate_swap_stop, &arg);
>>> > >
>>> > > out:
>>> > >
>>> > >
>>> > > Which seems to get hit. This sounds like a race with task moving to
>>> > > other cpu maybe?
>> >
>> > Oi, good call that, lemme go stare.
> I think something simple like this should be sufficient to avoid the
> problem of selecting oneself as a flip target.
Why would that happen in the first place?
Thanks,
Sasha
next prev parent reply other threads:[~2014-05-22 2:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-12 18:25 sched: spinlock recursion in migrate_swap_stop Sasha Levin
2014-05-20 2:05 ` Sasha Levin
2014-05-20 11:04 ` Peter Zijlstra
2014-05-20 13:03 ` Sasha Levin
2014-05-21 13:08 ` Sasha Levin
2014-05-21 13:19 ` Peter Zijlstra
2014-05-21 16:49 ` Peter Zijlstra
2014-05-22 2:34 ` Sasha Levin [this message]
2014-05-22 6:59 ` Peter Zijlstra
2014-05-23 4:03 ` Sasha Levin
2014-05-22 5:35 ` Srikar Dronamraju
2014-05-22 7:00 ` Peter Zijlstra
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=537D6244.6040106@oracle.com \
--to=sasha.levin@oracle.com \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=riel@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.