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
34263426 mutex_unlock(&head->mutex);
34273427 btrfs_put_delayed_ref(ref);
34283428
3429+ spin_lock(&delayed_refs->lock);
34293430 continue;
34303431 }
34313432