]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
TaskFinisher: cancel all tasks wait until finisher done 9752/head
authorHaomai Wang <haomai@xsky.com>
Tue, 14 Jun 2016 03:03:19 +0000 (11:03 +0800)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 Jun 2016 17:54:39 +0000 (13:54 -0400)
commit6b41d76f53337a696523cddb47b53b703cdfa571
tree2ac52658947c46d8778bbb44742f5c74355a2652
parent502540faf67308fa595e03f9f446b4ba67df731d
TaskFinisher: cancel all tasks wait until finisher done

Otherwise, caller may think pending task won't be executed but actually
finisher may execute callback which may cause refer to freed object.

Signed-off-by: Haomai Wang <haomai@xsky.com>
(cherry picked from commit 40c5679ef038375e2bde982f401d78c1f3e05c6c)
src/librbd/ImageWatcher.cc
src/librbd/TaskFinisher.h