]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: hold reference to req_completion while calling aio_operate()
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 14 Jan 2016 00:40:22 +0000 (16:40 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:55 +0000 (16:13 -0800)
commitfd46b2d92ae0d3e09e23ab022f08c8e2eb33251d
tree4a90d4a6022ba0d6a746851a968e5bf932b2585b
parent22faa002a75b11f2eb4850b060ee668bcc11c18e
rgw: hold reference to req_completion while calling aio_operate()

This is a workaround to fix issue with aio_operate() racing with the
request completion. This way we make sure completion->release() is
called after aio_operate() finishes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_metadata.cc