summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compat.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-06-03 16:42:36 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-06-14 11:30:13 -0400
commite78417d1921c538ea195537c7bea1b31a6a55961 (patch)
treee588950c7b2af3d686fdc7fb34dc704e4e66c170 /fs/btrfs/compat.h
parenta5959bc0a1920d54c07b26a67b104caaf28f0a8c (diff)
downloadblackbird-op-linux-e78417d1921c538ea195537c7bea1b31a6a55961.tar.gz
blackbird-op-linux-e78417d1921c538ea195537c7bea1b31a6a55961.zip
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: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/compat.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud