lkml.org 
[lkml]   [2007]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [Patch 4/4] sched: Improve fairness of cpu bandwidth allocation for task groups

    * Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com> wrote:

    > +static inline void lock_doms_cur(void)
    > +{
    > + mutex_lock(&doms_cur_mutex);
    > +}
    > +
    > +static inline void unlock_doms_cur(void)
    > +{
    > + mutex_unlock(&doms_cur_mutex);
    > +}
    > +
    > #else
    >
    > static inline void set_task_cfs_rq(struct task_struct *p, unsigned int cpu) { }
    > static inline void lock_task_group_list(void) { }
    > static inline void unlock_task_group_list(void) { }
    > +static inline void lock_doms_cur(void) { }
    > +static inline void unlock_doms_cur(void) { }
    >
    > #endif /* CONFIG_FAIR_GROUP_SCHED */
    >
    > @@ -6546,6 +6605,8 @@
    > {
    > int i, j;
    >
    > + lock_doms_cur();
    > +
    > /* always unregister in case we don't destroy any domains */
    > unregister_sched_domain_sysctl();
    >
    > @@ -6586,6 +6647,8 @@
    > ndoms_cur = ndoms_new;
    >
    > register_sched_domain_sysctl();
    > +
    > + unlock_doms_cur();
    > }

    this API and locking should be introduced in a separate patch first, to
    reduce the size and impact of the 4/4 patch.

    Ingo
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-11-26 21:33    [W:0.042 / U:29.432 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site