GFS2: Fix locking bug in rename
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 9 Dec 2009 13:55:12 +0000 (13:55 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 8 Jan 2010 13:42:42 +0000 (13:42 +0000)
The rename code was taking a resource group lock in cases where
it wasn't actually needed, this caused problems if the rename
was resulting in an inode being unlinked. The patch ensures that
we only take the rgrp lock early if it is really needed.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found