Move querying for atomic device params before cache start
This needs to be done in caller application context. As part of asynchronous management API rework, volume_open callback was moved to kernel worker thread context. To work around this, atomic parameters are now read before cache attach/load/probe and provided to bottom volume via volume params. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -412,7 +412,7 @@ int cas_blk_open_volume_by_bdev(ocf_volume_t *vol,
|
||||
bdobj->btm_bd = bdev;
|
||||
bdobj->opened_by_bdev = true;
|
||||
|
||||
ocf_volume_open(*vol);
|
||||
ocf_volume_open(*vol, &atomic_params);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user