Skip to content
Commit e78417d1 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: do not pin while under spin lock



When testing a corrupted fs I noticed I was getting sleep while atomic errors
when the transaction aborted.  This is because btrfs_pin_extent may need to
allocate memory and we are calling this under the spin lock.  Fix this by moving
it out and doing the pin after dropping the spin lock but before dropping the
mutex, the same way it works when delayed refs run normally.  Thanks,

Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent a5959bc0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment