Re: [PATCH v4 3/5] sched/core: Streamlining calls to task_rq_unlock()

From: Steven Rostedt
Date: Thu Jun 14 2018 - 09:42:52 EST


On Wed, 13 Jun 2018 14:17:09 +0200
Juri Lelli <juri.lelli@xxxxxxxxxx> wrote:

> From: Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>
>
> Calls to task_rq_unlock() are done several times in function
> __sched_setscheduler(). This is fine when only the rq lock needs to be
> handled but not so much when other locks come into play.
>
> This patch streamlines the release of the rq lock so that only one
> location need to be modified when dealing with more than one lock.
>
> No change of functionality is introduced by this patch.
>
> Signed-off-by: Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>

Reviewed-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

-- Steve