]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold write snap_lock when refreshing object map
authorJason Dillaman <dillaman@redhat.com>
Mon, 9 Mar 2015 13:55:08 +0000 (09:55 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 10 Mar 2015 22:41:45 +0000 (15:41 -0700)
commit9dcd517ff9495ff917b83a761a03ec01cf9f2932
treed42a28840492cf035105e5e3f2af5fecaff6a242
parentc35f422f74f180dbae184b619febc75e620e5b1a
librbd: hold write snap_lock when refreshing object map

If the object map needs to be invalidated, a write lock on
snap_lock is required.

Fixes: #11067
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/ObjectMap.cc