From 10d59dec9aa51a48dd68d2ef196e0716938ee017 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 21 Oct 2018 00:58:04 -0700 Subject: [PATCH] ircd::ctx::dock: Make notify() an unconditional notify rather than direct jump. --- include/ircd/ctx/dock.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/include/ircd/ctx/dock.h b/include/ircd/ctx/dock.h index dc6524148..882b3817f 100644 --- a/include/ircd/ctx/dock.h +++ b/include/ircd/ctx/dock.h @@ -248,14 +248,7 @@ inline void ircd::ctx::dock::notify(ctx &ctx) noexcept { - // This branch handles dock.notify() being called from outside the context system. - // If a context is currently running we can make a direct context-switch with - // yield(ctx), otherwise notify(ctx) enqueues the context. - - if(current) - ircd::ctx::yield(ctx); - else - ircd::ctx::notify(ctx); + ircd::ctx::notify(ctx); } /// The number of contexts waiting in the queue.