[Linux-cluster] Granularity of a lock

Steven Whitehouse swhiteho at redhat.com
Fri May 30 10:17:51 UTC 2008


On Fri, 2008-05-30 at 11:12 +0100, Lipika Deka wrote:
> Hello List,
>     Would anyone tell me what is the granularity of a lock in GFS
> using DLM and is locking part of a file possible.Is there something
> similar to byte range locks of GPFS in GFS?
> Thanks in advance.
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster

I'm not sure of exactly what GPFS does in this regard, but the locking
in GFS (and GFS2) is one lock per inode I'm afraid. Its a RW-lock though
so that read accesses at least can be done across the whole cluster at
once. With GFS2 that includes read accesses to rw-mapped mmaped regions
of files, for GFS that requires an exclusive lock I'm afraid,


More information about the Linux-cluster mailing list