pyocf: wait for pending I/O before cache stop

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2019-04-17 18:12:56 -04:00
parent 121b3233e4
commit d607402f2b

View File

@ -409,6 +409,7 @@ class Cache:
[("cache", c_void_p), ("priv", c_void_p), ("error", c_int)]
)
self.owner.lib.ocf_cache_wait_for_io_finish(self.cache_handle)
self.owner.lib.ocf_mngt_cache_stop(self.cache_handle, c, None)
c.wait()