Async wait for cleaner completion

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2019-04-11 13:16:16 -04:00
parent 0e15c693fd
commit 348b0f9ab8
7 changed files with 281 additions and 144 deletions

View File

@@ -171,6 +171,7 @@ struct ocf_cache {
struct {
struct ocf_refcnt dirty;
struct ocf_refcnt metadata;
struct ocf_refcnt cleaning[OCF_IO_CLASS_MAX];
} refcnt;
uint32_t fallback_pt_error_threshold;
@@ -193,8 +194,6 @@ struct ocf_cache {
env_atomic flush_in_progress;
env_atomic cleaning[OCF_IO_CLASS_MAX];
struct ocf_cleaner cleaner;
struct ocf_metadata_updater metadata_updater;