]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: unlock everything properly in the error case for nocow
authorJosef Bacik <josef@redhat.com>
Thu, 31 May 2012 19:58:55 +0000 (15:58 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 15 Jun 2012 01:29:15 +0000 (21:29 -0400)
commit01ca27f96176f44408919911253db7b3c3bb39a2
tree6fa1d7daf40ba3c2df952dd30c660c88f418c1fd
parent4ea17086247f4fdd1d5f734669c75c39e69f9d62
Btrfs: unlock everything properly in the error case for nocow

I was getting hung on umount when a transaction was aborted because a range
of one of the free space inodes was still locked.  This is because the nocow
stuff doesn't unlock anything on error.  This fixed the problem and I
verified that is what was happening.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c