]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix ImageWatcher::is_lock_supported() locking
authorJosh Durgin <jdurgin@redhat.com>
Tue, 24 Feb 2015 02:49:34 +0000 (18:49 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 25 Feb 2015 23:41:54 +0000 (15:41 -0800)
commit4bcbdbfd0f69b00cbba53e4753459989b6117d3a
tree2b35227f2379a85dfc8d8f03ea7e2309793e5466
parenta94ceb608857c48f2237704bf60bd3e384feedb8
librbd: fix ImageWatcher::is_lock_supported() locking

Take snap_lock while reading ImageCtx->snap_id, and
look up the features by snap_id as well.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/ImageWatcher.cc