From: David Teigland Date: Fri, 8 Jun 2007 21:00:22 +0000 (-0500) Subject: [GFS2] set plock owner in GETLK info X-Git-Tag: v2.6.23-rc1~1156^2~20 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d88101d4d82ea09433692af30618c3b7afb7da02;p=karo-tx-linux.git [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. Signed-off-by: David Teigland Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/locking/dlm/plock.c b/fs/gfs2/locking/dlm/plock.c index f82495e18c2d..1dc76805dd45 100644 --- a/fs/gfs2/locking/dlm/plock.c +++ b/fs/gfs2/locking/dlm/plock.c @@ -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));