Browse Source

btrfs: add missing spin_unlock to a rare exit path

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
David Sterba 14 năm trước cách đây
mục cha
commit
cfece4db11
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      fs/btrfs/disk-io.c

+ 1 - 0
fs/btrfs/disk-io.c

@@ -2903,6 +2903,7 @@ static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
 
 	spin_lock(&delayed_refs->lock);
 	if (delayed_refs->num_entries == 0) {
+		spin_unlock(&delayed_refs->lock);
 		printk(KERN_INFO "delayed_refs has NO entry\n");
 		return ret;
 	}