]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: async open/close should free ImageCtx before issuing callback
authorJason Dillaman <dillaman@redhat.com>
Thu, 18 Apr 2019 17:17:56 +0000 (13:17 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 15 May 2019 19:43:38 +0000 (15:43 -0400)
commit86d7f39b50f3efde928d77a9f8392c34f0918a4c
tree9578256e131e4ad92a94e0bf742bff436ca52971
parentf13315d0d23ca9175ecf1a1df045887614e197f1
librbd: async open/close should free ImageCtx before issuing callback

The destructor for ImageCtx attempts to access librados::IoCtx objects
that might have been destroyed immediately after the async open (failure)
and close actions completed.

Fixes: http://tracker.ceph.com/issues/39031
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit be419a1d6fd1e176ab4fdebfaa17726bb63d6ac8)

Conflicts:
src/librbd/io/AioCompletion.cc: assert->ceph_assert confict
src/librbd/io/AioCompletion.cc
src/librbd/io/AioCompletion.h