btrfs: fix second lock in btrfs_delete_delayed_items()
authorFengguang Wu <fengguang.wu@intel.com>
Sat, 4 Aug 2012 07:45:02 +0000 (01:45 -0600)
committerChris 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

index 335605c8ceab730394d45d9975adaa7025203dd7..00deed4ef3edd4b54da3a3de1d14e59425458ca0 100644 (file)
@@ -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;
        }
 
This page took 0.029826 seconds and 5 git commands to generate.