[PATCH 06/11] sched/deadline: Add missing annotation for dl_task_offline_migration()

From: Jules Irenge
Date: Sun Feb 09 2020 - 17:39:59 EST


Sparse reports warning at dl_task_offline_migration()

warning: context imbalance in dl_task_offline_migration()
- unexpected unlock

The root cause is the missing annotation for dl_task_offline_migration()

Add the missing __releases(rq->lock) annotation.

Signed-off-by: Jules Irenge <jbi.octave@xxxxxxxxx>
---
kernel/sched/deadline.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 43323f875cb9..68ea3a4933db 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -527,6 +527,7 @@ static inline void deadline_queue_pull_task(struct rq *rq)
static struct rq *find_lock_later_rq(struct task_struct *task, struct rq *rq);

static struct rq *dl_task_offline_migration(struct rq *rq, struct task_struct *p)
+ __releases(rq->lock)
{
struct rq *later_rq = NULL;
struct dl_bw *dl_b;
--
2.24.1