GFS2: fix recursive locking during rindex truncates
authorBenjamin Marzinski <bmarzins@redhat.com>
Wed, 24 Nov 2010 05:52:55 +0000 (23:52 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 30 Nov 2010 15:41:54 +0000 (15:41 +0000)
commit086d8334cf73b3bb695b82dd864a7a8b00d96b7e
treeacadf5458a2ccfde44049bcb7ba63e136844f875
parent0489b3f5eba735413ccedd425651cf41d6b1f7c5
GFS2: fix recursive locking during rindex truncates

When you truncate the rindex file, you need to avoid calling gfs2_rindex_hold,
since you already hold it.  However, if you haven't already read in the
resource groups, you need to do that.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c
fs/gfs2/rgrp.c
fs/gfs2/rgrp.h