From: Josef Bacik Date: Fri, 28 Mar 2014 21:16:01 +0000 (-0400) Subject: Btrfs: hold the commit_root_sem when getting the commit root during send X-Git-Tag: v3.15-rc1~23^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8a18cc53bd1be26eb5b5247e1386ad0e21b623;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed