Skip to contentSkip to conversation

GFS2: set plock owner in GETLK info

PATCH In review David Teigland 2 participants 2 messages Jun 8, 2007 – Jun 9, 2007 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 GFS2: set plock owner in GETLK info

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.

fs/gfs2/locking/dlm/plock.c +1 -1
Index: linux-quilt/fs/gfs2/locking/dlm/plock.c
===================================================================
@@ -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));
#1 lore raw

Hi,

Now added to the GFS2 -nmw git tree. Thanks,

Steve.

Quoted 19 lines · David Teigland

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.

Index: linux-quilt/fs/gfs2/locking/dlm/plock.c
===================================================================

fs/gfs2/locking/dlm/plock.c +1 -1
@@ -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));