Messages in this thread | | | Date | Sun, 9 Dec 2001 16:47:21 +0100 | From | Jens Axboe <> | Subject | Re: 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 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/
| |