This UT was not working as intended, and was covered by scheduler implementation and direct modification of the lw_thread stats in UT. A single _reactor_run() iterates over all active pollers. If at least one returns busy, so does the thread. Thread load at the begining of UT is not 'low', but 100% busy. To emulate loads outside of the 100% busy/idle, multiple spdk_thread_polls need to be exectued. As such to keep this case simple, the busy poller is removed. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I21b4c607977ed5926e0bb2743c33636cfc49f328 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8021 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> |
||
---|---|---|
.. | ||
app.c | ||
reactor.c | ||
Makefile |