[Linux-cluster] Synchronous Locking Function for Kernel
pcaulfie at redhat.com
Mon Feb 20 13:27:01 UTC 2006
renapte at vsnl.net wrote:
> I'm trying to use the DLM independently to acquire locks in the ext2 code. I'm calling the functions that refresh the kernel data structures in the AST after taking the locks. I'd like to know how to find out when this AST has been called, ie when do I know the final result of the locking so as to proceed in the ext2 function. I can see a completion structure in the holder structure in the glock layer. Is that what performs this task in the gfs?
Personally I'd use a waitqueue.
Allocate a structure that contains the LKSB and a waitqueue and pass that as
the ast parameter. Then you can wake up the mainline code in the AST routine.
More information about the Linux-cluster