Merge pull request #127 from arutk/pytest_wait_io
pyocf: wait for pending I/O before cache stop
This commit is contained in:
commit
d4e929140e
@ -449,6 +449,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()
|
||||
|
Loading…
Reference in New Issue
Block a user