Re: [patch 08/16] sched: throttle cfs_rq entities which exceed their local runtime

Bharata B Rao
2011-06-22T07:11:38Z

On Tue, Jun 21, 2011 at 12:16:57AM -0700, Paul Turner wrote:
> @@ -1505,7 +1559,17 @@ enqueue_task_fair(struct rq *rq, struct
> break;
> cfs_rq = cfs_rq_of(se);
> enqueue_entity(cfs_rq, se, flags);
> +
> + /*
> + * end evaluation on encountering a throttled cfs_rq
> + *
> + * note: in the case of encountering a throttled cfs_rq we will
> + * post the final h_nr_running decrement below.

You mean 'final h_nr_running increment' I suppose ?

> + */
> + if (cfs_rq_throttled(cfs_rq))
> + break;
> cfs_rq->h_nr_running++;
> +
> flags = ENQUEUE_WAKEUP;
> }
>
> @@ -1513,11 +1577,15 @@ enqueue_task_fair(struct rq *rq, struct
> cfs_rq = cfs_rq_of(se);
> cfs_rq->h_nr_running++;

Regards,
Bharata.