commit | 65d33fd7a6e4aaf9cd6577555d0b3c18fbefe415 | [log] [tgz] |
---|---|---|
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | Tue Apr 22 17:13:51 2014 +0800 |
committer | Chris Mason <clm@fb.com> | Mon Jun 09 17:20:35 2014 -0700 |
tree | a4de22a193e48b0adb451ceeec2ad1f91544dde5 | |
parent | 21c7e75654b77b53a4436bf28496aac11536b6ba [diff] |
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 <quwenruo@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>