sched: Add __releases annotations to affine_move_task()
authorWaiman Long <longman@redhat.com>
Thu, 22 Sep 2022 18:00:37 +0000 (14:00 -0400)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 27 Oct 2022 09:01:21 +0000 (11:01 +0200)
commit5584e8ac2c68280e5ac31d231c23cdb7dfa225db
tree58ba1442b5394d8c19a861267222a7b94cf24e7e
parentad841e569f5c88e3332b32a000f251f33ff32187
sched: Add __releases annotations to affine_move_task()

affine_move_task() assumes task_rq_lock() has been called and it does
an implicit task_rq_unlock() before returning. Add the appropriate
__releases annotations to make this clear.

A typo error in comment is also fixed.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220922180041.1768141-2-longman@redhat.com
kernel/sched/core.c