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>
This commit is contained in:

committed by
Steven Whitehouse

parent
0489b3f5eb
commit
086d8334cf
@@ -583,7 +583,7 @@ static int read_rindex_entry(struct gfs2_inode *ip,
|
||||
* Returns: 0 on successful update, error code otherwise
|
||||
*/
|
||||
|
||||
static int gfs2_ri_update(struct gfs2_inode *ip)
|
||||
int gfs2_ri_update(struct gfs2_inode *ip)
|
||||
{
|
||||
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
|
||||
struct inode *inode = &ip->i_inode;
|
||||
|
Reference in New Issue
Block a user