Skip already removed exported objects on cache stop
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
f7fa4ae140
commit
76db828e4c
@ -695,6 +695,9 @@ static int kcas_core_lock_exported_object(ocf_core_t core, void *cntx)
|
|||||||
struct bd_object *bvol = bd_object(
|
struct bd_object *bvol = bd_object(
|
||||||
ocf_core_get_volume(core));
|
ocf_core_get_volume(core));
|
||||||
|
|
||||||
|
if (!bvol->expobj_valid)
|
||||||
|
return 0;
|
||||||
|
|
||||||
result = casdisk_functions.casdsk_exp_obj_lock(bvol->dsk);
|
result = casdisk_functions.casdsk_exp_obj_lock(bvol->dsk);
|
||||||
|
|
||||||
if (-EBUSY == result) {
|
if (-EBUSY == result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user