Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38739
b: refs/heads/master
c: 627add2
h: refs/heads/master
i:
  38737: 22e1206
  38735: 2821f0b
v: v3
  • Loading branch information
Steven Whitehouse committed Jul 5, 2006
1 parent edbe714 commit 00e9449
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: fd4de2d41a9de2d949b0850d637aa84616f87ab8
refs/heads/master: 627add2d1385394d020c84533c91ad26bc37b166
7 changes: 5 additions & 2 deletions trunk/fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,8 +1967,11 @@ static void scan_glock(struct gfs2_glock *gl)
if (gfs2_glmutex_trylock(gl)) {
if (gl->gl_ops == &gfs2_inode_glops) {
struct gfs2_inode *ip = gl->gl_object;
if (ip)
if (ip == NULL) {
struct gfs2_sbd *sdp = gl->gl_sbd;
gfs2_assert_withdraw(sdp, gl->gl_state == LM_ST_UNLOCKED);
goto out_schedule;
}
}
if (queue_empty(gl, &gl->gl_holders) &&
gl->gl_state != LM_ST_UNLOCKED &&
Expand All @@ -1982,7 +1985,7 @@ static void scan_glock(struct gfs2_glock *gl)

return;

out_schedule:
out_schedule:
gfs2_glmutex_unlock(gl);
gfs2_glock_schedule_for_reclaim(gl);
gfs2_glock_put(gl);
Expand Down

0 comments on commit 00e9449

Please sign in to comment.