diff options
-rw-r--r-- | fs/gfs2/glock.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 52f747858f55..aec7f73832f0 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1047,9 +1047,13 @@ int gfs2_glock_nq(struct gfs2_holder *gh) | |||
1047 | 1047 | ||
1048 | spin_lock(&gl->gl_spin); | 1048 | spin_lock(&gl->gl_spin); |
1049 | add_to_queue(gh); | 1049 | add_to_queue(gh); |
1050 | if ((LM_FLAG_NOEXP & gh->gh_flags) && | 1050 | if (unlikely((LM_FLAG_NOEXP & gh->gh_flags) && |
1051 | test_and_clear_bit(GLF_FROZEN, &gl->gl_flags)) | 1051 | test_and_clear_bit(GLF_FROZEN, &gl->gl_flags))) { |
1052 | set_bit(GLF_REPLY_PENDING, &gl->gl_flags); | 1052 | set_bit(GLF_REPLY_PENDING, &gl->gl_flags); |
1053 | gl->gl_lockref.count++; | ||
1054 | if (queue_delayed_work(glock_workqueue, &gl->gl_work, 0) == 0) | ||
1055 | gl->gl_lockref.count--; | ||
1056 | } | ||
1053 | run_queue(gl, 1); | 1057 | run_queue(gl, 1); |
1054 | spin_unlock(&gl->gl_spin); | 1058 | spin_unlock(&gl->gl_spin); |
1055 | 1059 | ||