From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Sat, 09 Jun 2007 15:34:07 +0100 Subject: [Cluster-devel] Re: [PATCH] GFS2: set plock owner in GETLK info In-Reply-To: <20070608210022.GM31758@redhat.com> References: <20070608210022.GM31758@redhat.com> Message-ID: <1181399647.25918.283.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 added to the GFS2 -nmw git tree. Thanks, Steve. On Fri, 2007-06-08 at 16:00 -0500, David Teigland wrote: > Set the owner field in the plock info sent to userspace for GETLK. > Without this, gfs_controld won't correctly see when the GETLK from a > process matches one of the process's existing locks. > > Signed-off-by: David Teigland > > Index: linux-quilt/fs/gfs2/locking/dlm/plock.c > =================================================================== > --- linux-quilt.orig/fs/gfs2/locking/dlm/plock.c 2007-05-25 14:56:42.000000000 -0500 > +++ linux-quilt/fs/gfs2/locking/dlm/plock.c 2007-06-08 15:26:03.000000000 -0500 > @@ -242,7 +242,7 @@ > op->info.number = name->ln_number; > op->info.start = fl->fl_start; > op->info.end = fl->fl_end; > - > + op->info.owner = (__u64)(long) fl->fl_owner; > > send_op(op); > wait_event(recv_wq, (op->done != 0));