librbd: fixed object map issues discovered via fsx
authorJason Dillaman <dillaman@redhat.com>
Mon, 2 Feb 2015 20:08:42 +0000 (15:08 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 3 Feb 2015 12:15:00 +0000 (13:15 +0100)
commit9e9356b1d8a49ec03d2bc8df5ad08d894c10eabe
tree2f02339b119ab38e5d231da0da2084d0a8556cf7
parent225a19fa67c3fa6306ceee94c1f264e797f2d1c3
librbd: fixed object map issues discovered via fsx

The object map wasn't being properly refreshed after setting
the snapshot context on the parent image. Additionally fixed
a potential deadlock that could have occurred if no object
map update was required when trimming an image.

Fixes: #10706
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/AioRequest.cc
src/librbd/AsyncResizeRequest.cc
src/librbd/AsyncTrimRequest.cc
src/librbd/CopyupRequest.cc
src/librbd/ImageCtx.cc
src/librbd/ObjectMap.cc
src/librbd/ObjectMap.h
src/librbd/internal.cc
src/test/pybind/test_rbd.py