[OpenAFS-devel] Linux 2.6.12 kernel BUG at fs/namei.c:1189

Jeffrey Hutzelman jhutz@cmu.edu
Fri, 27 Jan 2006 16:51:18 -0500


On Friday, January 20, 2006 05:58:29 PM +0100 Rainer Toebbicke 
<rtbimap@pclella.cern.ch> wrote:

> BTW: lock_kernel() is not only "recursive", it also gets dropped and
> reacquired when you give up control (e.g. sleep).  Its semantics are
> quite different from the AFS global lock.

Actually, the AFS_GLOCK has that behavior as well, provided you don't go 
off and sleep in uncontrolled ways while holding it (which you shouldn't 
ever do).  However, it's not recursive - attempting to acquire the GLOCK 
when you already have it is a bug, and will result in either deadlock or a 
panic.