mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 05:14:35 +00:00
single_task_running() is usually more general than need_resched() but CFS_BANDWIDTH throttling will use resched_task() when there is just one task to get the task to block. This was causing long-need_resched warnings and was likely allowing VMs to overrun their quota when halt polling. Signed-off-by: Ben Segall <[email protected]> Signed-off-by: Venkatesh Srinivas <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Cc: [email protected] Reviewed-by: Jim Mattson <[email protected]>