Re: [CHECKER] 4 warnings in kernel/module.c

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 23 Mar 2001 11:03:49 +0000 (GMT)


> Hi, we modified the block checker and run it again on linux 2.4.1. (The
> block checker flags an error when blocking functions are called with
> either interrupts disabled or a spin lock held. )

lock_kernel() isnt a spinlock as such.

> 2. Can functions like kmem_cache_create, kmem_cache_alloc, alloc_page
> block?

They may block unless GFP_ATOMIC is specified in the arguments.

Alan

-
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/