]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: fix s_writers.counter imbalance in gfs2_ail_empty_gl
authorEric Sandeen <sandeen@redhat.com>
Tue, 18 Sep 2012 02:50:31 +0000 (21:50 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:47:29 +0000 (10:47 +0100)
commitbc560d0ee1e240ac5acad278545bbe0864b6b94f
tree11526c24ae007ba3b8d3cc0bd5430546f10a56be
parent9362a875035471cb9845785a9aceff3264fe6978
GFS2: fix s_writers.counter imbalance in gfs2_ail_empty_gl

gfs2_ail_empty_gl() contains an "inline version" of gfs2_trans_begin(),
so it needs an explicit sb_start_intwrite() as well, to balance the
sb_end_intwrite() which will be called by gfs2_trans_end().

With this, xfstest 068 passes on lock_nolock local gfs2.
Without it, we reach a writer count of -1 and get stuck.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glops.c