pyocf: Fix cache settle

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga 2024-02-05 10:39:34 +01:00 committed by Michal Mielewczyk
parent 3ebdf38aa9
commit c07e44f036

View File

@ -1010,7 +1010,8 @@ class Cache:
# settle all queues accociated with this cache (mngt and I/O) # settle all queues accociated with this cache (mngt and I/O)
def settle(self): def settle(self):
Queue.settle_many(self.io_queues + [self.mngt_queue]) while not self.owner.lib.ocf_dbg_cache_is_settled(self.cache_handle):
pass
@staticmethod @staticmethod
def get_by_name(cache_name, owner=None): def get_by_name(cache_name, owner=None):