Problems with vnode locking/unlocking

Alex Hornung ahornung at gmail.com
Tue May 26 14:35:38 PDT 2009


Hi,

I'm running into quite a lot of trouble with vnode locking and
unlocking, releasing, putting, getting, ... I'm 100% sure I got most if
not all of the vnode locking wrong and I reallly need some help
understanding it. It is still unclear to me what vnops need to do what
with regard to locking/unlocking.

My current code is here:
http://gitweb.dragonflybsd.org/~alexh/dragonfly.git/tree/9de1a66518d104077521a13d7b13ae958fd79d98:/sys/vfs/devfs

Right now my concerns are mainly in devfs_vnops.c, where all the
locking/unlocking/... occurs or should occur.

I'd appreciate some insight/comments/corrections/... on this issue!


Thank you in advance,

Alex Hornung






More information about the Kernel mailing list