tdq_lock_pair() already does spinlock_enter() so migration is not
possible in sched_balance_pair(). Remove redundant sched_pin(). Reviewed by: marius, jeff
This commit is contained in:
parent
ed228e403f
commit
a049aa05c9
@ -910,10 +910,8 @@ sched_balance_pair(struct tdq *high, struct tdq *low)
|
||||
* reschedule with the new workload.
|
||||
*/
|
||||
cpu = TDQ_ID(low);
|
||||
sched_pin();
|
||||
if (cpu != PCPU_GET(cpuid))
|
||||
ipi_cpu(cpu, IPI_PREEMPT);
|
||||
sched_unpin();
|
||||
}
|
||||
tdq_unlock_pair(high, low);
|
||||
return (moved);
|
||||
|
Loading…
Reference in New Issue
Block a user