Fix race condition during cache attach

After attaching new cache device handle all the IOs in Pass-Through mode
until all the d2c requests are completed.

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga
2024-11-21 21:26:00 +01:00
parent 2c28f33e37
commit 0d06b3a597
3 changed files with 27 additions and 3 deletions

View File

@@ -106,6 +106,8 @@ struct ocf_cache {
env_atomic flush_in_progress;
env_mutex flush_mutex;
env_atomic attach_pt;
struct ocf_cleaner cleaner;
struct list_head io_queues;