Re: Synchronous Locking Function for Kernel

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

 



renapte@xxxxxxxx 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

--

Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux