commit | 8351583e3f6e430ce8f71913909a96ad5cc6a2f6 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Tue Jun 14 15:16:14 2011 -0400 |
committer | Josef Bacik <josef@redhat.com> | Wed Jun 15 13:24:46 2011 -0400 |
tree | f345f40f94d12ffe090735f19aebc96c72be44bd | |
parent | 71d7aed014457147e8f71a843d5fbf03235e4a85 [diff] |
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 <josef@redhat.com>