[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBBSn7WfYgUPdDY8eTd2cy-R6uR_YKV39z4rLvu0-BkCfQ@mail.gmail.com>
Date: Wed, 23 May 2012 20:55:37 +0800
From: Hillf Danton <dhillf@...il.com>
To: LKML <linux-kernel@...r.kernel.org>,
Hillf Danton <dhillf@...il.com>
Subject: Re: BFS 420: fix clear_sticky when breaking sole affinity
The sticky bit is cleared after checking the task with the bit set for
given CPU.
--- a/kernel/sched/bfs.c Mon May 14 20:50:38 2012
+++ b/kernel/sched/bfs.c Wed May 23 20:16:18 2012
@@ -5153,7 +5153,8 @@ static void break_sole_affinity(int src_
task_pid_nr(p), p->comm, src_cpu);
}
}
- clear_sticky(p);
+ if (task_sticky(p) && task_cpu(p) == src_cpu)
+ clear_sticky(p);
} while_each_thread(t, p);
}
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists