+44
−17
Loading
Relaunch queue poller on put_io_channel callback of OCF bdev to delay thread shutdown. New poller will finish all pending OCF requests as there might be some even after all SPDK IOs completed. This solves the issue of OCF not being able to complete all its work because of queue poller getting unregistered in callback of put_io_channel. This patch also changes unregister procedure: we call ocf_cache_stop in callback of io_device_unregister instead of in callback of bdev_unregister. Change-Id: Ib7e41fc25e71029a73bb76a62e39e6bf4b8189ce Signed-off-by:Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/444276 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>