summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2012-05-31 17:06:33 +0200
committerChris Mason <chris.mason@oracle.com>2012-06-15 03:29:11 +0200
commitb939d1ab76b4aa816343cdbd8b44ce9929a3b9ef (patch)
tree231ff204d260f0d50b8789029937750d7d4f8952 /fs/btrfs/compression.c
parentBtrfs: pass locked_page into extent_clear_unlock_delalloc if theres an error (diff)
downloadlinux-b939d1ab76b4aa816343cdbd8b44ce9929a3b9ef.tar.xz
linux-b939d1ab76b4aa816343cdbd8b44ce9929a3b9ef.zip
Btrfs: fix locking in btrfs_destroy_delayed_refs
The transaction abort stuff was throwing warnings from the list debugging code because we do a list_del_init outside of the delayed_refs spin lock. The delayed refs locking makes baby Jesus cry so it's not hard to get wrong, but we need to take the ref head mutex to make sure it's not being processed currently, and so if it is we need to drop the spin lock and then take and drop the mutex and do the search again. If we can take the mutex then we can safely remove the head from the list and carry on. Now when the transaction aborts I don't get the list debugging warnings. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions