]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] set plock owner in GETLK info
authorDavid Teigland <teigland@redhat.com>
Fri, 8 Jun 2007 21:00:22 +0000 (16:00 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:23:31 +0000 (08:23 +0100)
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>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/locking/dlm/plock.c

index f82495e18c2d7b32686bbf611177396ff6b10da5..1dc76805dd45644317fcc7d977c9928ecf297128 100644 (file)
@@ -242,7 +242,7 @@ int gdlm_plock_get(void *lockspace, struct lm_lockname *name,
        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));