This patch adds a reserve_finish callback that can be defined by the
subsystems that require a shared_context. It is called at the end of
shctx_row_reserve_hot after the shared_context lock is released.
unsigned int nbav; /* number of available blocks */
unsigned int max_obj_size; /* maximum object size (in bytes). */
void (*free_block)(struct shared_block *first, struct shared_block *block, void *data);
+ void (*reserve_finish)(struct shared_context *shctx);
void *cb_data;
short int block_size;
unsigned char data[VAR_ARRAY];
shctx_wrunlock(shctx);
+ if (shctx->reserve_finish)
+ shctx->reserve_finish(shctx);
+
out:
return ret;
}