Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1513629 > unrolled thread
| Started by | luca abeni <luca.abeni@unitn.it> |
|---|---|
| First post | 2016-11-02 03:50 +0100 |
| Last post | 2016-11-02 03:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC v3 2/6] Improve the tracking of active utilisation luca abeni <luca.abeni@unitn.it> - 2016-11-02 03:50 +0100
| From | luca abeni <luca.abeni@unitn.it> |
|---|---|
| Date | 2016-11-02 03:50 +0100 |
| Subject | Re: [RFC v3 2/6] Improve the tracking of active utilisation |
| Message-ID | <syTMJ-ex-5@gated-at.bofh.it> |
On Mon, 24 Oct 2016 16:06:34 +0200
Luca Abeni <luca.abeni@unitn.it> wrote:
[...]
> @@ -514,7 +556,20 @@ static void update_dl_entity(struct sched_dl_entity *dl_se,
> struct dl_rq *dl_rq = dl_rq_of_se(dl_se);
> struct rq *rq = rq_of_dl_rq(dl_rq);
>
> - add_running_bw(dl_se, dl_rq);
> + if (hrtimer_is_queued(&dl_se->inactive_timer)) {
> + hrtimer_try_to_cancel(&dl_se->inactive_timer);
Replying to myself here: after re-readling this code again, I now think that
if hrtimer_try_to_cancel() does not fail I need a put_task_struct() to
compensate for the one that should happen in the inactive timer handler
and I just cancelled...
I do not know how I previously missed this (or maybe I just managed to
confuse myself now :)
I will check this in next week.
Luca
Back to top | Article view | linux.kernel
csiph-web