]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[GFS2] Fix bug in error path of inode
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 7 Jun 2007 10:47:52 +0000 (11:47 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:23:22 +0000 (08:23 +0100)
commite1cc86037b689a82cdb2df50c32fa8cf9d6b6c3a
tree8d7502be9841fae1f13afd2676b86c9139ac0fc2
parentffed8ab342e39b8b5f4d5c94c37a708e225ffcd8
[GFS2] Fix bug in error path of inode

This fixes a bug in the ordering of operations in the error path of
createi. Its not valid to do an iput() when holding the inode's glock
since the iput() will (in this case) result in delete_inode() being
called which needs to grab the lock itself. This was causing the
recursive lock checking code to trigger.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/inode.c