Vitaliy Mysak 4fad4b86dd ocf: finish OCF reqs after put_io_channel
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>
2019-04-03 00:00:20 +00:00
..
2019-03-12 22:21:58 +00:00
2019-03-05 12:09:25 +00:00
2019-01-28 09:41:52 +00:00
2019-01-28 09:41:52 +00:00
2019-01-28 09:41:52 +00:00
2019-03-05 12:09:25 +00:00
2019-03-05 12:09:25 +00:00
2019-01-28 09:41:52 +00:00
2019-01-28 09:41:52 +00:00
2019-03-12 22:21:58 +00:00
2019-03-05 12:09:25 +00:00