]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async/Event: ensure not refer to member variable which may destroyed 10369/head
authorHaomai Wang <haomai@xsky.com>
Sat, 9 Jul 2016 16:15:55 +0000 (00:15 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 20 Jul 2016 12:44:32 +0000 (20:44 +0800)
commit6ea50dabd68db9a3199e1d3c16b82ec8774ad897
treee8b1304f952de03efcc4a74c46d0477ee0ce316e
parent12c068365c43a140fe1fe23bf68318342710e84d
msg/async/Event: ensure not refer to member variable which may destroyed

If nonwait is false, another thread is waiting for complete. After calling f()
this thread will notify for finishing and at this moment another thread will
destroy this C_submit_event right now. So we may refer to nonwait when
C_submit_event is disappeared.

Fixes: http://tracker.ceph.com/issues/16714
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/Event.h