From: Josef Bacik Date: Tue, 14 Jun 2011 19:16:14 +0000 (-0400) Subject: Btrfs: protect the pending_snapshots list with trans_lock X-Git-Tag: v3.0-rc4~9^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8351583e3f6e430ce8f71913909a96ad5cc6a2f6;p=pandora-kernel.git Btrfs: protect the pending_snapshots list with trans_lock Currently there is nothing protecting the pending_snapshots list on the transaction. We only hold the directory mutex that we are snapshotting and a read lock on the subvol_sem, so we could race with somebody else creating a snapshot in a different directory and end up with list corruption. So protect this list with the trans_lock. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed