Skip to content

Commit

Permalink
Fix discard step callback refcount
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Stefanowski <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
  • Loading branch information
Rafal Stefanowski authored and mmichal10 committed Sep 10, 2024
1 parent 070b16b commit 7dfe70f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engine/engine_discard.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ static int _ocf_discard_step_do(struct ocf_request *req)
ocf_hb_req_prot_unlock_wr(req);

if (req->info.flush_metadata) {
env_atomic_inc(&req->req_remaining);

/* Request was dirty and need to flush metadata */
ocf_metadata_flush_do_asynch(cache, req,
_ocf_discard_step_complete);
Expand Down

0 comments on commit 7dfe70f

Please sign in to comment.