summaryrefslogtreecommitdiffstats
path: root/crypto/ecc.c
diff options
context:
space:
mode:
authorPhil Auld <pauld@redhat.com>2020-05-12 09:52:22 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-27 17:48:31 +0200
commitead9998d9af85c219ec1f5ea78fb4cc7acdd7b4c (patch)
tree9c41d665f256db16731bb076c8918fea17e5056e /crypto/ecc.c
parent2ae9f8473fb39f06f7d89dcf5a6be74e74283ba1 (diff)
downloadlinux-stable-ead9998d9af85c219ec1f5ea78fb4cc7acdd7b4c.tar.gz
linux-stable-ead9998d9af85c219ec1f5ea78fb4cc7acdd7b4c.tar.bz2
linux-stable-ead9998d9af85c219ec1f5ea78fb4cc7acdd7b4c.zip
sched/fair: Fix enqueue_task_fair() warning some more
[ Upstream commit b34cb07dde7c2346dec73d053ce926aeaa087303 ] sched/fair: Fix enqueue_task_fair warning some more The recent patch, fe61468b2cb (sched/fair: Fix enqueue_task_fair warning) did not fully resolve the issues with the rq->tmp_alone_branch != &rq->leaf_cfs_rq_list warning in enqueue_task_fair. There is a case where the first for_each_sched_entity loop exits due to on_rq, having incompletely updated the list. In this case the second for_each_sched_entity loop can further modify se. The later code to fix up the list management fails to do what is needed because se does not point to the sched_entity which broke out of the first loop. The list is not fixed up because the throttled parent was already added back to the list by a task enqueue in a parallel child hierarchy. Address this by calling list_add_leaf_cfs_rq if there are throttled parents while doing the second for_each_sched_entity loop. Fixes: fe61468b2cb ("sched/fair: Fix enqueue_task_fair warning") Suggested-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Phil Auld <pauld@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lkml.kernel.org/r/20200512135222.GC2201@lorien.usersys.redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/ecc.c')
0 files changed, 0 insertions, 0 deletions