From: Qu Wenruo Date: Tue, 22 Apr 2014 09:13:51 +0000 (+0800) Subject: btrfs: Add check to avoid cleanup roots already in fs_info->dead_roots. X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65d33fd7a6e4aaf9cd6577555d0b3c18fbefe415;p=pandora-kernel.git btrfs: Add check to avoid cleanup roots already in fs_info->dead_roots. Current btrfs_orphan_cleanup will also cleanup roots which is already in fs_info->dead_roots without protection. This will have conditional race with fs_info->cleaner_kthread. This patch will use refs in root->root_item to detect roots in dead_roots and avoid conflicts. Signed-off-by: Qu Wenruo Signed-off-by: Chris Mason --- Reading git-diff-tree failed