sched/fair: Modify the comment about lock assumptions in migrate_task_rq_fair()
authorByungchul Park <byungchul.park@lge.com>
Wed, 18 Nov 2015 00:34:59 +0000 (09:34 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Nov 2015 08:48:20 +0000 (09:48 +0100)
commit525628c73bd6af65f27d927e699e7460d7d55ed3
treef861122f25a41c982295912b1194d37c5c77c777
parentaccaf6ea3db6f5fb997f096b6eefd5431d03f7e5
sched/fair: Modify the comment about lock assumptions in migrate_task_rq_fair()

The comment describing migrate_task_rq_fair() says that the caller
should hold p->pi_lock. But in some cases the caller can hold
task_rq(p)->lock instead of p->pi_lock. So the comment is broken and
this patch fixes it.

Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1447806899-20303-1-git-send-email-byungchul.park@lge.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c
This page took 0.025026 seconds and 5 git commands to generate.