浏览代码

Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes

* git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
  GFS2: Fix glock ref counting bug
Linus Torvalds 16 年之前
父节点
当前提交
f9f51cc0ce
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/gfs2/glock.c

+ 1 - 0
fs/gfs2/glock.c

@@ -1304,6 +1304,7 @@ static int gfs2_shrink_glock_memory(int nr, gfp_t gfp_mask)
 				nr--;
 				nr--;
 				if (queue_delayed_work(glock_workqueue, &gl->gl_work, 0) == 0)
 				if (queue_delayed_work(glock_workqueue, &gl->gl_work, 0) == 0)
 					gfs2_glock_put(gl);
 					gfs2_glock_put(gl);
+				got_ref = 0;
 			}
 			}
 			spin_lock(&lru_lock);
 			spin_lock(&lru_lock);
 			if (may_demote)
 			if (may_demote)