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

Re: [Linux-cluster] Granularity of a lock



Hi,

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 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,

Steve.



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