lkml.org 
[lkml]   [2010]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH -mm] cpuset,mm: fix no node to alloc memory when changing cpuset's mems - fix2
    On Wed, 12 May 2010 15:20:51 +0800 Miao Xie <miaox@cn.fujitsu.com> wrote:

    > @@ -985,6 +984,7 @@ repeat:
    > * for the read-side.
    > */
    > while (ACCESS_ONCE(tsk->mems_allowed_change_disable)) {
    > + task_unlock(tsk);
    > if (!task_curr(tsk))
    > yield();
    > goto repeat;

    Oh, I meant to mention that. No yield()s, please. Their duration is
    highly unpredictable. Can we do something more deterministic here?

    Did you consider doing all this with locking? get_mems_allowed() does
    mutex_lock(current->lock)?



    \
     
     \ /
      Last update: 2010-05-12 09:53    [W:0.020 / U:155.116 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site