]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: flush context potentially completing too early
authorJason Dillaman <dillaman@redhat.com>
Tue, 24 Feb 2015 17:53:45 +0000 (12:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 26 Feb 2015 00:51:07 +0000 (19:51 -0500)
commitdde882cd7a389616ebade40b054bd1984176be45
treeaa7a48bd60b1add9c03e16f8e451156c2ccc70ed
parent17493d648f64000bad00a04370f175ef506ace5d
librbd: flush context potentially completing too early

If the async operation associated with a flush request completes,
only complete the flush contexts if no previous operations are
still in flight. Otherwise, move the flush contexts to an older
in-flight async operation.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AsyncOperation.cc
src/librbd/ImageCtx.cc