]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove ourselves from the cluster list under lock
authorJosef Bacik <jbacik@fusionio.com>
Thu, 22 Aug 2013 21:03:29 +0000 (17:03 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:23 +0000 (08:16 -0400)
commitef7d88b30ab50af745600a263e2f2e05a236109b
treeba6694c593b6f6cde9a2505c18c66b3b192b8d11
parent6bba0cb484f10e313f387b51eac8be1d9a5cd31f
Btrfs: remove ourselves from the cluster list under lock

A user was reporting weird warnings from btrfs_put_delayed_ref() and I noticed
that we were doing this list_del_init() on our head ref outside of
delayed_refs->lock.  This is a problem if we have people still on the list, we
could end up modifying old pointers and such.  Fix this by removing us from the
list before we do our run_delayed_ref on our head ref.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c