Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38718
b: refs/heads/master
c: 0239c4a
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed Jun 20, 2006
1 parent a647943 commit f02a5b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 695165dfba5204791bc4ae8911ed8b6326ce6d91
refs/heads/master: 0239c4ae8aa5cdee6dc3792effc2800d65292c04
21 changes: 14 additions & 7 deletions trunk/fs/gfs2/locking/dlm/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ static void process_complete(struct gdlm_lock *lp)

if (lp->lksb.sb_status == -DLM_ECANCEL) {
log_info("complete dlm cancel %x,%llx flags %lx",
lp->lockname.ln_type, lp->lockname.ln_number,
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number,
lp->flags);

lp->req = lp->cur;
Expand All @@ -68,7 +69,8 @@ static void process_complete(struct gdlm_lock *lp)
if (lp->lksb.sb_status != -DLM_EUNLOCK) {
log_info("unlock sb_status %d %x,%llx flags %lx",
lp->lksb.sb_status, lp->lockname.ln_type,
lp->lockname.ln_number, lp->flags);
(unsigned long long)lp->lockname.ln_number,
lp->flags);
return;
}

Expand Down Expand Up @@ -100,7 +102,8 @@ static void process_complete(struct gdlm_lock *lp)

if (test_and_clear_bit(LFL_CANCEL, &lp->flags)) {
log_info("complete internal cancel %x,%llx",
lp->lockname.ln_type, lp->lockname.ln_number);
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number);
lp->req = lp->cur;
acb.lc_ret |= LM_OUT_CANCELED;
goto out;
Expand All @@ -123,7 +126,8 @@ static void process_complete(struct gdlm_lock *lp)
/* this could only happen with cancels I think */
log_info("ast sb_status %d %x,%llx flags %lx",
lp->lksb.sb_status, lp->lockname.ln_type,
lp->lockname.ln_number, lp->flags);
(unsigned long long)lp->lockname.ln_number,
lp->flags);
return;
}

Expand All @@ -144,9 +148,11 @@ static void process_complete(struct gdlm_lock *lp)

if (test_and_clear_bit(LFL_REREQUEST, &lp->flags)) {
gdlm_assert(lp->req == DLM_LOCK_NL, "%x,%llx",
lp->lockname.ln_type, lp->lockname.ln_number);
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number);
gdlm_assert(lp->prev_req > DLM_LOCK_NL, "%x,%llx",
lp->lockname.ln_type, lp->lockname.ln_number);
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number);

lp->cur = DLM_LOCK_NL;
lp->req = lp->prev_req;
Expand Down Expand Up @@ -183,7 +189,8 @@ static void process_complete(struct gdlm_lock *lp)
lp->lkf &= ~DLM_LKF_CONVDEADLK;

log_debug("rereq %x,%llx id %x %d,%d",
lp->lockname.ln_type, lp->lockname.ln_number,
lp->lockname.ln_type,
(unsigned long long)lp->lockname.ln_number,
lp->lksb.sb_lkid, lp->cur, lp->req);

set_bit(LFL_REREQUEST, &lp->flags);
Expand Down

0 comments on commit f02a5b1

Please sign in to comment.