Destroy exp obj workqueue properly
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
3497b2c728
commit
8fae9e2476
@ -742,8 +742,10 @@ static int kcas_core_stop_exported_object(ocf_core_t core, void *cntx)
|
||||
casdisk_functions.casdsk_exp_obj_get_gendisk(bvol->dsk)->disk_name);
|
||||
|
||||
ret = casdisk_functions.casdsk_exp_obj_destroy(bvol->dsk);
|
||||
if (!ret)
|
||||
if (!ret) {
|
||||
bvol->expobj_valid = false;
|
||||
destroy_workqueue(bvol->expobj_wq);
|
||||
}
|
||||
}
|
||||
|
||||
if (bvol->expobj_locked) {
|
||||
|
Loading…
Reference in New Issue
Block a user