mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-23 21:22:17 +00:00
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:
parent
6dbd3e963b
commit
62a124977b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user