Skip to content
Commit 8351583e authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJosef Bacik <josef@redhat.com>
parent 71d7aed0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment