History

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,

Josef Bacik committed 14 years ago

Commit e18fca71 parent 69bca401 file · +1 −0Browse files

Unified · Split

fs/btrfs/disk-io.c+1−0
@@ -3426,6 +3426,7 @@ int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, · 3425 unmodified lines
3426 mutex_unlock(&head->mutex);3426 mutex_unlock(&head->mutex);
3427 btrfs_put_delayed_ref(ref);3427 btrfs_put_delayed_ref(ref);
3428 3428
3429 spin_lock(&delayed_refs->lock);
3429 continue;3430 continue;
3430 }3431 }
3431 3432