]> 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>
Thu, 18 Apr 2019 17:24:20 +0000 (13:24 -0400)
commitbe419a1d6fd1e176ab4fdebfaa17726bb63d6ac8
treea59cd97b4a97b59ad3e6c35e5d1c13f07b4314d9
parent42e129cd3ae9d52a37248e8240f38ff9d86ad378
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>
src/librbd/io/AioCompletion.cc
src/librbd/io/AioCompletion.h