Re: kmem_cache_alloc & kernel_lock

Jens Axboe
2001-12-09T15:53:18Z

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