[lkml]   [2002]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: cmpxchg in 2.5.38
    On Wed, 25 Sep 2002, Ingo Molnar wrote:
    > On Wed, 25 Sep 2002, Oleg Drokin wrote:
    > > Ingo's argument was that since there is only one place in code that
    > > accesses that variable (map->page), it is safe to rely on such a
    > > crippled cmpxchg implementation.
    > yes. It's only this place in the code that ever modifies that word, and
    > that happens only once during the lifetime of this address, so i'll rather
    > add a spinlock to the generic PID allocator code, it's a very very rare
    > slowpath.

    Furthermore archs that have cmpxchg() define __HAVE_ARCH_CMPXCHG, while
    currently no code tests for it...



    Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    -- Linus Torvalds

    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: 2005-03-22 13:29    [W:0.040 / U:0.512 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site