lkml.org 
[lkml]   [2009]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH -v8][RFC] mutex: implement adaptive spinning
    Peter Zijlstra wrote:
    > Spinlocks can use 'pure' MCS locks.
    >

    How about this, then. In mutex_lock(), keep wait_lock locked and only
    release it when scheduling out. Waiter spinning naturally follows. If
    spinlocks are cache friendly (are they today?) we inherit that. If
    there is no contention on the mutex, then we don't need to reacquire the
    wait_lock on mutex_unlock() (not that the atomic op is that expensive
    these days).

    --
    error compiling committee.c: too many arguments to function



    \
     
     \ /
      Last update: 2009-01-12 18:37    [W:4.036 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site