Merge "sched: Fix "releasing a pinned lock" lockdep warning"

This commit is contained in:
qctecmdr 2020-11-18 22:31:08 -08:00 • committed by Gerrit - the friendly Code Review server
commit 5cc19bc1b5

View file

@ -1540,6 +1540,7 @@ static struct rq *move_queued_task(struct rq *rq, struct rq_flags *rf,
WRITE_ONCE(p->on_rq, TASK_ON_RQ_MIGRATING);
dequeue_task(rq, p, DEQUEUE_NOCLOCK);
rq_unpin_lock(rq, rf);
double_lock_balance(rq, cpu_rq(new_cpu));
if (!(rq->clock_update_flags & RQCF_UPDATED))
update_rq_clock(rq);