]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: call the ordered free operation without any locks held
authorChris Mason <chris.mason@fusionio.com>
Wed, 25 Jul 2012 19:57:13 +0000 (15:57 -0400)
committerChris Mason <chris.mason@fusionio.com>
Wed, 25 Jul 2012 20:15:07 +0000 (16:15 -0400)
commit206a17976a399273079b9fbea9b4d64e997d369d
tree17173067ddf7fcca490f3588a7f33ebeb1d4e366
parent1a90b220df7617c7c3841f50d40d2ffcee809316
Btrfs: call the ordered free operation without any locks held

Each ordered operation has a free callback, and this was called with the
worker spinlock held.  Josef made the free callback also call iput,
which we can't do with the spinlock.

This drops the spinlock for the free operation and grabs it again before
moving through the rest of the list.  We'll circle back around to this
and find a cleaner way that doesn't bounce the lock around so much.

Signed-off-by: Chris Mason <chris.mason@fusionio.com>
cc: stable@kernel.org
fs/btrfs/async-thread.c