MINOR: applets: no need to check for runqueue's emptiness in appctx_res_wakeup()

The __appctx_wakeup() function already does it. It matters with threads
enabled because it simplifies the code in appctx_res_wakeup() to get rid
of this test.
This commit is contained in:
Willy Tarreau 2017-11-05 12:01:11 +01:00
parent 6dbd3e963b
commit 62a124977b

View File

@ -147,11 +147,6 @@ static inline int appctx_res_wakeup(struct appctx *appctx)
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
return 1;
}
if (!LIST_ISEMPTY(&appctx->runq)) {
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
return 0;
}
__appctx_wakeup(appctx);
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
return 1;