+36
−8
Loading
Change if - else if - else blocks of thread_execute_poller() and thread_execute_timed_poller() to switch - cases blocks and specify possible states explicitly in these switch - cases blocks. The code will be simpler and clarified, and then the following patches will be easier. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I2e283894f5d69e1bd67466ae070c5b8bb9014616 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7664 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>