[lkml]   [2006]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Use uname not sysctl to get the kernel revision
    Ar Mer, 2006-07-12 am 16:26 -0600, ysgrifennodd Eric W. Biederman:
    > If the lock is not short lived then the release is like to be a long
    > ways off. If the lock is not highly contended then you are not likely
    > to hit the window when someone else as the contended lock.
    > How frequent are highly contended short lived locks in user space?

    I'm not sure it matters.

    If you want to do the job right then do this

    - Stick an indicator of how much else wants to run on this CPU in the
    vsyscall page or similar location

    In your locks you can now do

    while(try_and_grab_lock() == FAILED) {
    if (kernelpage->waiting > 0)

    Furthermore the kernel can be intelligent about the waiting indicator
    for power or other global scheduling reasons

    [Disclaimer: There is a patent issue around this technique but its not
    one that will impact GPL code as permissions are given for GPL use.]


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-07-13 00:53    [W:0.019 / U:23.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site