diff options
author | Chris Mason <chris.mason@oracle.com> | 2011-06-13 20:00:16 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-06-17 13:36:58 -0400 |
commit | 7585717f304f5ed005cc4ad933a69aab3efbd136 (patch) | |
tree | 2bbef7f61c61b125778d3631237094594b408e0a /Kbuild | |
parent | f4c44016218a6fce357715b9bbabbbbe1f69853c (diff) |
Btrfs: fix relocation races
The recent commit to get rid of our trans_mutex introduced
some races with block group relocation. The problem is that relocation
needs to do some record keeping about each root, and it was relying
on the transaction mutex to coordinate things in subtle ways.
This fix adds a mutex just for the relocation code and makes sure
it doesn't have a big impact on normal operations. The race is
really fixed in btrfs_record_root_in_trans, which is where we
step back and wait for the relocation code to finish accounting
setup.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions