]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: move completion release into rbd_ctx_cb()
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 10 May 2013 22:45:57 +0000 (15:45 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 10 May 2013 23:17:10 +0000 (16:17 -0700)
commitfb299d3819f6469c3eecd73efe8cc32ad868628e
treee97d274dd1c5cd54462511097dcebd745f9886d6
parenta6d0a2543596bf7d7ced92fe68ca0dc009cca015
librbd: move completion release into rbd_ctx_cb()

All the users of rbd_ctx_cb() do this separately right now, but
there's no reason to keep the completion around after the nested
completion has been called. Also declare rbd_ctx_cb() in the header
so it can be used before its definition.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/internal.cc
src/librbd/internal.h