Skip to content

Commit

Permalink
Fix a issue with pool ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Jul 26, 2023
1 parent 738ff06 commit 69222b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/h5_async_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -25631,6 +25631,7 @@ H5VL_async_request_wait(void *obj, uint64_t timeout, H5VL_request_status_t *stat
hbool_t acquired = true;
unsigned int mutex_count = 0;
hbool_t tmp = async_instance_g->start_abt_push;
ABT_pool * pool_ptr = NULL;

assert(obj);
assert(status);
Expand Down Expand Up @@ -25669,6 +25670,8 @@ H5VL_async_request_wait(void *obj, uint64_t timeout, H5VL_request_status_t *stat

// There is a chance that the background task is finishing up, so check it twice
int attempt = 2;
if (task->async_obj)
pool_ptr = task->async_obj->pool_ptr;
while (attempt--) {
if (task->async_obj && get_n_running_task_in_queue_obj(task->async_obj, __func__) == 0 &&
async_instance_g->qhead.queue && task->async_obj->pool_ptr) {
Expand Down

0 comments on commit 69222b0

Please sign in to comment.