Revert "FROMGIT: sched: Add __releases annotations to affine_move_task()"
This reverts commit 5001781910.
This series is responsible for a functional regression with task
affinity failing to take into account offline CPUs. Although this has
been reported upstream, work to fix the problem is ongoing and we're
better off reverting these changes from android13-5.15.
Link: https://lore.kernel.org/lkml/20230131221719.3176-1-will@kernel.org/
Signed-off-by: Will Deacon <willdeacon@google.com>
Bug: 263926519
Bug: 264940090
Change-Id: I9c2433043a697577575b32f27907bb88b579fdd6
This commit is contained in:
@@ -2672,8 +2672,6 @@ void release_user_cpus_ptr(struct task_struct *p)
|
||||
*/
|
||||
static int affine_move_task(struct rq *rq, struct task_struct *p, struct rq_flags *rf,
|
||||
int dest_cpu, unsigned int flags)
|
||||
__releases(rq->lock)
|
||||
__releases(p->pi_lock)
|
||||
{
|
||||
struct set_affinity_pending my_pending = { }, *pending = NULL;
|
||||
bool stop_pending, complete = false;
|
||||
@@ -2986,7 +2984,7 @@ static int restrict_cpus_allowed_ptr(struct task_struct *p,
|
||||
|
||||
/*
|
||||
* Restrict the CPU affinity of task @p so that it is a subset of
|
||||
* task_cpu_possible_mask() and point @p->user_cpus_ptr to a copy of the
|
||||
* task_cpu_possible_mask() and point @p->user_cpu_ptr to a copy of the
|
||||
* old affinity mask. If the resulting mask is empty, we warn and walk
|
||||
* up the cpuset hierarchy until we find a suitable mask.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user