Skip to content

Check if exp_obj exist before accesing the priv - #1799

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:exp_obj-exist-check
Sep 5, 2026
Merged

Check if exp_obj exist before accesing the priv#1799
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:exp_obj-exist-check

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

Now the priv_top is freed when exp_obj is destroyed or deposited, so we need to check properly for exp_obj existence before accesing it.

This fixes all the error paths, where the exported object has been aready destroyed, but removing core from the OCF failed, leaving half-deinitialized, so that user can safely retry the failed operation and clean up this broken state.

Now the priv_top is freed when exp_obj is destroyed or deposited,
so we need to check properly for exp_obj existence before accessing it.

This fixes all the error paths, where the exported object has been
aready destroyed, but removing core from the OCF failed, leaving
half-deinitialized, so that user can safely retry the failed operation
and clean up this broken state.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit bdd6eff into Open-CAS:master Sep 5, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant