From: Mike Travis <travis@sgi.com>
To: Rusty Russell <rusty@rustcorp.com.au>, Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] Slight fix for locking-fix patch to remove compiler warning
Date: Tue, 25 Nov 2008 08:55:39 -0800 [thread overview]
Message-ID: <492C2E0B.4020209@sgi.com> (raw)
In-Reply-To: <200811250959.20652.rusty@rustcorp.com.au>
Rusty Russell wrote:
> We can't call cpuset_cpus_allowed_locked() with the rq lock held.
> However, the rq lock merely protects us from (1) cpu_online_mask changing
> and (2) someone else changing p->cpus_allowed.
>
> The first can't happen because we're being called from a cpu hotplug
> notifier. The second doesn't really matter: we are forcing the task off
> a CPU it was affine to, so we're not doing very well anyway.
>
> So we remove the rq lock from this path, and all is good.
>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
>
Remove rq since it's no longer referenced.
Signed-off-by: Mike Travis <travis@sgi.com>
---
kernel/sched.c | 1 -
1 file changed, 1 deletion(-)
--- linux-2.6.28-tip-cpumasks.orig/kernel/sched.c
+++ linux-2.6.28-tip-cpumasks/kernel/sched.c
@@ -6126,7 +6126,6 @@ static int __migrate_task_irq(struct tas
*/
static void move_task_off_dead_cpu(int dead_cpu, struct task_struct *p)
{
- struct rq *rq;
int dest_cpu;
/* FIXME: Use cpumask_of_node here. */
cpumask_t _nodemask = node_to_cpumask(cpu_to_node(dead_cpu));
next prev parent reply other threads:[~2008-11-25 16:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 16:08 [PULL] cpumask conversion patches for sched Rusty Russell
2008-11-24 17:17 ` Ingo Molnar
2008-11-24 17:22 ` Ingo Molnar
2008-11-24 17:23 ` Ingo Molnar
2008-11-24 19:19 ` [PATCH] sched: fix-local_cpu_mask Mike Travis
2008-11-25 15:10 ` Mike Travis
2008-11-24 23:27 ` [PULL] cpumask conversion patches for sched Rusty Russell
2008-11-26 6:59 ` Ingo Molnar
2008-11-24 23:27 ` [PATCH 1/3] Fix commits 7d1e6a9b and dcc30a35 for UP build Rusty Russell
2008-11-24 23:28 ` [PATCH 2/3] Fix commit 0e3900e6 " Rusty Russell
2008-11-24 23:29 ` [PATCH 3/3] Fix locking error caused by e76bd8d9850c2296a7e8e24c9dce9b5e6b55fe2f Rusty Russell
2008-11-25 16:52 ` Mike Travis
2008-11-25 16:55 ` Mike Travis [this message]
2008-11-26 7:56 ` [PATCH 1/1] Slight fix for locking-fix patch to remove compiler warning Rusty Russell
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=492C2E0B.4020209@sgi.com \
--to=travis@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rusty@rustcorp.com.au \
/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.