lkml.org 
[lkml]   [2010]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH RFC] reduce runqueue lock contention
    On 12/13, Frank Rowand wrote:
    >
    > I have not been able to make sense of the task_running() check in
    > try_to_wake_up(), even with that clue. The try_to_wake_up() code in
    > question is:
    > ...
    >
    > What am I missing, or is the task_running() test not needed?

    I am afraid I can misuderstood this all, including the question ;)

    But, with __ARCH_WANT_UNLOCKED_CTXSW task_running() checks ->oncpu.
    However, schedule() drops rq->lock after prev was deactivated but
    before it clears prev->oncpu.

    Oleg.



    \
     
     \ /
      Last update: 2010-12-15 20:09    [W:4.981 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site