GFS2: put glock reference in error patch of read_rindex_entry
authorBob Peterson <rpeterso@redhat.com>
Thu, 22 Mar 2012 12:58:30 +0000 (08:58 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 26 Mar 2012 08:16:56 +0000 (09:16 +0100)
commitc1ac539ed43f273cd4d92bf7350ffd783b920184
tree3d1b9e08d5e215da8b0be0db788fff151d91ebbf
parente22057c8599373e5caef0bc42bdb95d2a361ab0d
GFS2: put glock reference in error patch of read_rindex_entry

This patch fixes the error path of function read_rindex_entry
so that it correctly gives up its glock reference in cases where
there is a race to re-read the rindex after gfs2_grow.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c