Btrfs: Fix deadlock while searching for dead roots on mount
authorChris Mason <chris.mason@oracle.com>
Thu, 26 Jun 2008 14:34:20 +0000 (10:34 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:04 +0000 (11:04 -0400)
commita7a16fd772620605c76e8ac8bdbc8ccc9e3df1a0
tree5dc173d7653ba4819ce1c853b9e84293422edf90
parentf9efa9c784aa3b801feb367f72c6867d26fb348e
Btrfs: Fix deadlock while searching for dead roots on mount

btrfs_find_dead_roots called btrfs_read_fs_root_no_radix, which
means we end up calling btrfs_search_slot with a path already held.

The fix is to remember the key inside btrfs_find_dead_roots and drop
the path.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/root-tree.c