projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c329861
)
btrfs: fix second lock in btrfs_delete_delayed_items()
author
Fengguang Wu
<fengguang.wu@intel.com>
Sat, 4 Aug 2012 07:45:02 +0000
(
01:45
-0600)
committer
Chris Mason
<chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:31 +0000
(16:53 -0400)
Fix a real bug caught by coccinelle.
fs/btrfs/delayed-inode.c:1013:1-11: second lock on line 1013
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
fs/btrfs/delayed-inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/delayed-inode.c
b/fs/btrfs/delayed-inode.c
index 335605c8ceab730394d45d9975adaa7025203dd7..00deed4ef3edd4b54da3a3de1d14e59425458ca0 100644
(file)
--- a/
fs/btrfs/delayed-inode.c
+++ b/
fs/btrfs/delayed-inode.c
@@
-1028,9
+1028,10
@@
do_again:
btrfs_release_delayed_item(prev);
ret = 0;
btrfs_release_path(path);
- if (curr)
+ if (curr) {
+ mutex_unlock(&node->mutex);
goto do_again;
- else
+
}
else
goto delete_fail;
}