lkml.org 
[lkml]   [2007]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 08/10] SLUB: Optional fast path using cmpxchg_local
    On Sun, 28 Oct 2007, Pekka J Enberg wrote:

    > Can you please write a comment of the locking rules when cmpxchg_local()
    > is used? Looks as if we could push that local_irq_save() to slub_lock()
    > and local_irq_restore() to slub_unlock() and deal with the unused flags
    > variable for the non-CONFIG_FAST_CMPXCHG_LOCAL case with a macro, no?

    Hmmmm... Maybe .. The locking rules are not changed at all by this patch.
    The cmpxchg_local is only used for the per cpu object list. The per cpu
    slabs are frozen.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-29 04:03    [W:0.022 / U:88.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site