[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Synchronous Locking Function for Kernel



renapte vsnl net wrote:
> Hi,
> 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.

-- 

patrick


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]