diff options
Diffstat (limited to 'fs/gfs2/glops.c')
-rw-r--r-- | fs/gfs2/glops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index e2e0a90396e7..db908f697139 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c | |||
@@ -525,9 +525,9 @@ static void iopen_go_callback(struct gfs2_glock *gl, bool remote) | |||
525 | 525 | ||
526 | if (gl->gl_demote_state == LM_ST_UNLOCKED && | 526 | if (gl->gl_demote_state == LM_ST_UNLOCKED && |
527 | gl->gl_state == LM_ST_SHARED && ip) { | 527 | gl->gl_state == LM_ST_SHARED && ip) { |
528 | gfs2_glock_hold(gl); | 528 | gl->gl_lockref.count++; |
529 | if (queue_work(gfs2_delete_workqueue, &gl->gl_delete) == 0) | 529 | if (queue_work(gfs2_delete_workqueue, &gl->gl_delete) == 0) |
530 | gfs2_glock_put_nolock(gl); | 530 | gl->gl_lockref.count--; |
531 | } | 531 | } |
532 | } | 532 | } |
533 | 533 | ||