static void prio_changed_dl(struct rq *rq, struct task_struct *p,
                            int oldprio)
 {
-       if (task_on_rq_queued(p) || task_current(rq, p)) {
+       if (!task_on_rq_queued(p))
+               return;
+
 #ifdef CONFIG_SMP
-               /*
-                * This might be too much, but unfortunately
-                * we don't have the old deadline value, and
-                * we can't argue if the task is increasing
-                * or lowering its prio, so...
-                */
-               if (!rq->dl.overloaded)
-                       deadline_queue_pull_task(rq);
+       /*
+        * This might be too much, but unfortunately
+        * we don't have the old deadline value, and
+        * we can't argue if the task is increasing
+        * or lowering its prio, so...
+        */
+       if (!rq->dl.overloaded)
+               deadline_queue_pull_task(rq);
 
+       if (task_current(rq, p)) {
                /*
                 * If we now have a earlier deadline task than p,
                 * then reschedule, provided p is still on this
                 */
                if (dl_time_before(rq->dl.earliest_dl.curr, p->dl.deadline))
                        resched_curr(rq);
-#else
+       } else {
                /*
-                * Again, we don't know if p has a earlier
-                * or later deadline, so let's blindly set a
-                * (maybe not needed) rescheduling point.
+                * Current may not be deadline in case p was throttled but we
+                * have just replenished it (e.g. rt_mutex_setprio()).
+                *
+                * Otherwise, if p was given an earlier deadline, reschedule.
                 */
-               resched_curr(rq);
-#endif /* CONFIG_SMP */
+               if (!dl_task(rq->curr) ||
+                   dl_time_before(p->dl.deadline, rq->curr->dl.deadline))
+                       resched_curr(rq);
        }
+#else
+       /*
+        * We don't know if p has a earlier or later deadline, so let's blindly
+        * set a (maybe not needed) rescheduling point.
+        */
+       resched_curr(rq);
+#endif
 }
 
 DEFINE_SCHED_CLASS(dl) = {