From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Fri, 14 Sep 2007 13:26:27 +0100 Subject: [Cluster-devel] Re: [PATCH][GFS2] - bz 272021: GFS2 - flocks from same process trip kernel BUG at fs/gfs2/glock.c:1118! In-Reply-To: <46EA0F8F.8080601@redhat.com> References: <46EA0F8F.8080601@redhat.com> Message-ID: <1189772787.1068.40.camel@quoit> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Now in the -nmw git tree. Thanks, Steve. On Thu, 2007-09-13 at 23:35 -0500, Abhijith Das wrote: > This patch adds a new flag to the gfs2_holder structure GL_FLOCK. > It is set on holders of glocks representing flocks. This flag is > checked in add_to_queue() and a process is permitted to queue more > than one holder onto a glock if it is set. This solves the issue > of a process not being able to do multiple flocks on the same file. > Through a single descriptor, a process can now promote and demote > flocks. Through multiple descriptors a process can now queue > multiple flocks on the same file. There's still the problem of > a process deadlocking itself (because gfs2 blocking locks are not > interruptible) by queueing incompatible deadlock. > > Signed-off-by: Abhijith Das >