summaryrefslogtreecommitdiffstats
path: root/src/msg/async/Event.h
diff options
context:
space:
mode:
authorHaomai Wang <haomai@xsky.com>2016-06-19 18:03:03 +0200
committerHaomai Wang <haomai@xsky.com>2016-06-29 06:14:29 +0200
commit1f65a355bed462b6ae2d4f1cab1a6a60f794e0ef (patch)
treeed6efee15e014035a7c087088f3385d93082b6fd /src/msg/async/Event.h
parentEvent: change submit_to related to cephcontext (diff)
downloadceph-1f65a355bed462b6ae2d4f1cab1a6a60f794e0ef.tar.xz
ceph-1f65a355bed462b6ae2d4f1cab1a6a60f794e0ef.zip
msg/async/Event: don't execute inline if nonwait
Signed-off-by: Haomai Wang <haomai@xsky.com>
Diffstat (limited to '')
-rw-r--r--src/msg/async/Event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg/async/Event.h b/src/msg/async/Event.h
index 184a7ca06e0..27bbca5b715 100644
--- a/src/msg/async/Event.h
+++ b/src/msg/async/Event.h
@@ -206,7 +206,7 @@ class EventCenter {
assert(i < MAX_EVENTCENTER && global_centers);
EventCenter *c = global_centers->centers[i];
assert(c);
- if (c->in_thread()) {
+ if (!nowait && c->in_thread()) {
f();
return ;
}