cluster/dlm-kernel/src lockqueue.c

teigland@sourceware.org teigland@sourceware.org
Tue Jan 24 14:38:00 GMT 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	teigland@sourceware.org	2006-01-24 14:38:19

Modified files:
	dlm-kernel/src : lockqueue.c 

Log message:
	When GFS uses direct-io PR and CW locks are mixed together
	on a single resource.  To optimize the interaction between
	these two lock modes, GFS uses LM_FLAG_ANY to request that
	either of the modes be granted.  When the dlm carries out
	this optimization and grants a PR lock instead of a CW, or
	a CW instead of a PR, the mode is not switched on the non-
	master node.  So, for example, the lock will be requested
	in PR mode with the ALTCW flag, it will be granted on the
	master node in CW mode, but the non master (requesting)
	node will record the granted mode as PR.
	
	Fix by changing the grmode on the non-master node when we
	get ALTMODE back from the master.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm-kernel/src/lockqueue.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.37.2.8&r2=1.37.2.9



More information about the Cluster-cvs mailing list