Loading
fio: Continue polling spdk_threads on the init thread after shutdown
When fio wants to shut down a thread, it stops polling it immediately. Some SPDK threads need to continue to be polled for a period of time to allow the message passing to all complete, so this behavior in fio could lead to a hang. Instead, when fio wants to shut down a thread, place that thread onto a global list that's polled by the init thread which lives for the duration of the program. The init thread will continue polling the spdk_thread until it has exited. Change-Id: I07292d5ba389167c45a14aa8ffbe72b49e88d17d Signed-off-by:Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3682 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
GangCao <gang.cao@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>