]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: take ImageCtx->snap_lock for write in add_snap()
authorJosh Durgin <jdurgin@redhat.com>
Tue, 24 Feb 2015 03:50:55 +0000 (19:50 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 25 Feb 2015 23:42:32 +0000 (15:42 -0800)
commit04d360a4c1e7b29bafe4aa4a9e91e98360932d31
tree5749a9b27c1fcce69242364854839e480ee52397
parent40c2abb08a8d2cbf43c3facbe10252138173b498
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 <jdurgin@redhat.com>
src/librbd/internal.cc