Merge pull request #1158 from robertbaldyga/exp-obj-queue-lifetime
Do not destroy expobj_wq if destroying exporting object failed
This commit is contained in:
commit
571227e056
@ -584,11 +584,13 @@ static int kcas_volume_destroy_exported_object(ocf_volume_t volume)
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
result = casdisk_functions.casdsk_exp_obj_destroy(bvol->dsk);
|
result = casdisk_functions.casdsk_exp_obj_destroy(bvol->dsk);
|
||||||
if (!result)
|
if (result)
|
||||||
bvol->expobj_valid = false;
|
goto out;
|
||||||
|
|
||||||
|
bvol->expobj_valid = false;
|
||||||
destroy_workqueue(bvol->expobj_wq);
|
destroy_workqueue(bvol->expobj_wq);
|
||||||
|
|
||||||
|
out:
|
||||||
casdisk_functions.casdsk_exp_obj_unlock(bvol->dsk);
|
casdisk_functions.casdsk_exp_obj_unlock(bvol->dsk);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user