Additional data type ops: deinit.
While unloading cas_cache module, volume types were deinitialized, although core pool still wasn't empty. Now this deinitialization can be done after removing cores from core pool, and before context is freed. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -565,6 +565,7 @@ const struct ocf_volume_properties cas_object_blk_properties = {
|
||||
.set_data = cas_blk_io_set_data,
|
||||
.get_data = cas_blk_io_get_data,
|
||||
},
|
||||
.deinit = NULL,
|
||||
};
|
||||
|
||||
int block_dev_init(void)
|
||||
@@ -578,10 +579,6 @@ int block_dev_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
void block_dev_deinit(void)
|
||||
{
|
||||
ocf_ctx_unregister_volume_type(cas_ctx, BLOCK_DEVICE_VOLUME);
|
||||
}
|
||||
|
||||
int block_dev_try_get_io_class(struct bio *bio, int *io_class)
|
||||
{
|
||||
|
Reference in New Issue
Block a user