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:
@@ -22,7 +22,7 @@
|
||||
#define CAS_DEBUG_PARAM(format, ...)
|
||||
#endif
|
||||
|
||||
int block_dev_open_object(ocf_volume_t vol)
|
||||
int block_dev_open_object(ocf_volume_t vol, void *volume_params)
|
||||
{
|
||||
struct bd_object *bdobj = bd_object(vol);
|
||||
const struct ocf_volume_uuid *uuid = ocf_volume_get_uuid(vol);
|
||||
|
Reference in New Issue
Block a user