Directory semaphore

Richard Gooch (rgooch@workaholix.atnf.CSIRO.AU)
Mon, 4 May 1998 10:41:37 +1000


Hi, all. I have an inode lookup method that can potentially block
for a considerable period of time. I've been looking at real_lookup()
and noticed that it grabs the directory semaphore before calling the
lookup() method. What I'd like to do is release the semaphore just
before I block, then grab it again when control returns back.

I have two questions. Firstly, is this a safe thing to do?

Secondly, to help me understand, is the directory semaphore rellay
there to protect the directory inode, or it's dentry?

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu