commit | 3f8a18cc53bd1be26eb5b5247e1386ad0e21b623 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fb.com> | Fri Mar 28 17:16:01 2014 -0400 |
committer | Chris Mason <clm@fb.com> | Mon Apr 07 09:08:39 2014 -0700 |
tree | 266eeb3baf38b968ae2186575ae70ef431cf159f | |
parent | 9e351cc862b098d8ec8f8022d110932490794925 [diff] |
Btrfs: hold the commit_root_sem when getting the commit root during send We currently rely too heavily on roots being read-only to save us from just accessing root->commit_root. We can easily balance blocks out from underneath a read only root, so to save us from getting screwed make sure we only access root->commit_root under the commit root sem. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>