Skip to content

Commit

Permalink
[GFS2] Update plock code in DLM locking module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Apr 25, 2006
1 parent 373b5a4 commit 3a2a9c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/gfs2/locking/dlm/plock.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int gdlm_plock(lm_lockspace_t *lockspace, struct lm_lockname *name,
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;
Expand Down Expand Up @@ -116,7 +116,7 @@ int gdlm_punlock(lm_lockspace_t *lockspace, struct lm_lockname *name,
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;
Expand Down Expand Up @@ -150,7 +150,7 @@ int gdlm_plock_get(lm_lockspace_t *lockspace, struct lm_lockname *name,
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;
Expand Down

0 comments on commit 3a2a9c9

Please sign in to comment.