Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librbd: take ImageCtx->snap_lock for write in add_snap()
add_snap() updates the ImageCtx snapshot metadata in memory, as well as reading the flags as part of the object map snapshot. Both of these require holding snap_lock. Signed-off-by: Josh Durgin <[email protected]>
- Loading branch information