linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: BFS 420: fix clear_sticky when breaking sole affinity
@ 2012-05-23 12:55 Hillf Danton
  2012-05-24 11:44 ` [patch] " Hillf Danton
  0 siblings, 1 reply; 2+ messages in thread
From: Hillf Danton @ 2012-05-23 12:55 UTC (permalink / raw)
  To: LKML, Hillf Danton

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);
 }

--

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] BFS 420: fix clear_sticky when breaking sole affinity
  2012-05-23 12:55 BFS 420: fix clear_sticky when breaking sole affinity Hillf Danton
@ 2012-05-24 11:44 ` Hillf Danton
  0 siblings, 0 replies; 2+ messages in thread
From: Hillf Danton @ 2012-05-24 11:44 UTC (permalink / raw)
  To: LKML, Hillf Danton

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 891 bytes --]

On Wed, May 23, 2012 at 8:55 PM, Hillf Danton <dhillf@gmail.com> wrote:
> 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);
>  }
>
> --
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-24 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23 12:55 BFS 420: fix clear_sticky when breaking sole affinity Hillf Danton
2012-05-24 11:44 ` [patch] " Hillf Danton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).