summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2012-06-18 15:23:18 +0200
committerChris Mason <chris.mason@fusionio.com>2012-06-21 13:19:35 +0200
commite18fca734278784bd6591de63ca148cc27344ca9 (patch)
tree89eb4cf79e6aa93dd7e949883c613de99207fb3b /fs/btrfs
parentBtrfs: don't assume to be on the correct extent in add_all_parents (diff)
downloadlinux-e18fca734278784bd6591de63ca148cc27344ca9.tar.xz
linux-e18fca734278784bd6591de63ca148cc27344ca9.zip
Btrfs: add a missing spin_lock
When fixing up the locking in the delayed ref destruction work I accidently broke the locking myself ;(. Add back a spin_lock that should be there and we are now all set. Thanks, Btrfs: add a missing spin_lock When fixing up the locking in the delayed ref destruction work I accidently broke the locking myself ;(. Add back a spin_lock that should be there and we are now all set. Thanks, Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index e22c5bbf0223..7d7bc8eace86 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3426,6 +3426,7 @@ int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
mutex_unlock(&head->mutex);
btrfs_put_delayed_ref(ref);
+ spin_lock(&delayed_refs->lock);
continue;
}