Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165143
b: refs/heads/master
c: 83e32d9
h: refs/heads/master
i:
  165141: b592a12
  165139: a296910
  165135: 76ede06
v: v3
  • Loading branch information
Wengang Wang authored and Joel Becker committed Sep 23, 2009
1 parent a610a65 commit b698da0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: d92bc5127b27f315ef0ef2c1e1829fd6a5cba54a
refs/heads/master: 83e32d9044a4510fffdf65c2691a25c0ba84e259
6 changes: 5 additions & 1 deletion trunk/fs/ocfs2/dlm/dlmthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,18 @@ static int dlm_purge_lockres(struct dlm_ctxt *dlm,
spin_lock(&dlm->spinlock);
}

spin_lock(&res->spinlock);
if (!list_empty(&res->purge)) {
mlog(0, "removing lockres %.*s:%p from purgelist, "
"master = %d\n", res->lockname.len, res->lockname.name,
res, master);
list_del_init(&res->purge);
spin_unlock(&res->spinlock);
dlm_lockres_put(res);
dlm->purge_count--;
}
} else
spin_unlock(&res->spinlock);

__dlm_unhash_lockres(res);

/* lockres is not in the hash now. drop the flag and wake up
Expand Down

0 comments on commit b698da0

Please sign in to comment.