cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] GFS2: set plock owner in GETLK info
@ 2007-06-08 21:00 David Teigland
  2007-06-09 14:34 ` [Cluster-devel] " Steven Whitehouse
  0 siblings, 1 reply; 2+ messages in thread
From: David Teigland @ 2007-06-08 21:00 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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 <teigland@redhat.com>

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));



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Cluster-devel] Re: [PATCH] GFS2: set plock owner in GETLK info
  2007-06-08 21:00 [Cluster-devel] [PATCH] GFS2: set plock owner in GETLK info David Teigland
@ 2007-06-09 14:34 ` Steven Whitehouse
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2007-06-09 14:34 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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 <teigland@redhat.com>
> 
> 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));



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-09 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-08 21:00 [Cluster-devel] [PATCH] GFS2: set plock owner in GETLK info David Teigland
2007-06-09 14:34 ` [Cluster-devel] " Steven Whitehouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).