[GFS2] Update plock code in DLM locking module
We should be using fl_pid not fl_owner.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
diff --git a/fs/gfs2/locking/dlm/plock.c b/fs/gfs2/locking/dlm/plock.c
index f7ac5821..86312d9 100644
--- a/fs/gfs2/locking/dlm/plock.c
+++ b/fs/gfs2/locking/dlm/plock.c
@@ -70,7 +70,7 @@
return -ENOMEM;
op->info.optype = GDLM_PLOCK_OP_LOCK;
- op->info.pid = (uint32_t) fl->fl_owner;
+ op->info.pid = fl->fl_pid;
op->info.ex = (fl->fl_type == F_WRLCK);
op->info.wait = IS_SETLKW(cmd);
op->info.fsid = ls->id;
@@ -116,7 +116,7 @@
name->ln_type, name->ln_number);
op->info.optype = GDLM_PLOCK_OP_UNLOCK;
- op->info.pid = (uint32_t) fl->fl_owner;
+ op->info.pid = fl->fl_pid;
op->info.fsid = ls->id;
op->info.number = name->ln_number;
op->info.start = fl->fl_start;
@@ -150,7 +150,7 @@
return -ENOMEM;
op->info.optype = GDLM_PLOCK_OP_GET;
- op->info.pid = (uint32_t) fl->fl_owner;
+ op->info.pid = fl->fl_pid;
op->info.ex = (fl->fl_type == F_WRLCK);
op->info.fsid = ls->id;
op->info.number = name->ln_number;