mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02: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);
|
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!LIST_ISEMPTY(&appctx->runq)) {
|
|
||||||
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
__appctx_wakeup(appctx);
|
__appctx_wakeup(appctx);
|
||||||
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user