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

Btrfs: do not do fast caching if we are allocating blocks for tree_root



Since the fast caching uses normal tree locking, we can possibly deadlock if we
get to the caching via a btrfs_search_slot() on the tree_root.  So just check to
see if the root we are on is the tree root, and just don't do the fast caching.

Reported-by: default avatarSage Weil <sage@newdream.net>
Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 2b20982e
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