]> 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 18:56:32 +0000 (14:56 -0400)
commitf628db04c0c5cb576a0dc77afc6c70a5e2e5fa15
treef8c820fd67a3896a69e3834736edf2f663b964c8
parenta7dac8d89d804cc91e38a38ff26294576f5298ce
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)
src/librbd/io/AioCompletion.cc
src/librbd/io/AioCompletion.h