[lkml]   [2001]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: kmem_cache_alloc & kernel_lock
    On Sun, Dec 09 2001, Frank Cornelis wrote:
    > Hi,
    > Can I use kmem_cache_alloc(mycache_cachep, SLAB_KERNEL) within
    > a kernel_lock/kernel_unlock block? Or should it be SLAB_ATOMIC?

    GFP_KERNEL is ok, you can sleep with the kernel lock held.

    Jens Axboe

    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:13    [W:0.021 / U:13.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site