[PATCH v5 4/5] sched/fair: Remove double_lock_balance() from active_load_balance_cpu_stop()

2014-08-20 Thread Kirill Tkhai
Avoid double_rq_lock() and use TASK_ON_RQ_MIGRATING for active_load_balance_cpu_stop(). The advantage is (obviously) not holding two 'rq->lock's at the same time and thereby increasing parallelism. Further note that if there was no task to migrate we will not have acquired the second rq->lock at

[PATCH v5 4/5] sched/fair: Remove double_lock_balance() from active_load_balance_cpu_stop()

2014-08-20 Thread Kirill Tkhai
Avoid double_rq_lock() and use TASK_ON_RQ_MIGRATING for active_load_balance_cpu_stop(). The advantage is (obviously) not holding two 'rq-lock's at the same time and thereby increasing parallelism. Further note that if there was no task to migrate we will not have acquired the second rq-lock at