diff mbox

[2.6.38-rc6] fix delayed_refs locking on error path...

Message ID AANLkTi=2r1pzBXiYjZifKrWFUXcUtNE3nBwspRM37DYx@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel J Blueman March 1, 2011, 4:08 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index e1aa8d6..c48d699 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2787,6 +2787,7 @@  static int btrfs_destroy_delayed_refs(struct
btrfs_transaction *trans,
 	spin_lock(&delayed_refs->lock);
 	if (delayed_refs->num_entries == 0) {
 		printk(KERN_INFO "delayed_refs has NO entry\n");
+		spin_unlock(&delayed_refs->lock);
 		return ret;
 	}