Skip to content

Commit

Permalink
DAOS-10675 pool: fix potential program hang (#9166)
Browse files Browse the repository at this point in the history
if pool adding failed, unlock is missed which might
cause potential program hang later.

Signed-off-by: Wang Shilong <[email protected]>
  • Loading branch information
Wang Shilong authored May 27, 2022
1 parent 6626f00 commit f92123e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pool/srv_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1521,8 +1521,8 @@ int ds_pool_failed_add(uuid_t uuid, int rc)
uuid_copy(psf->psf_uuid, uuid);
psf->psf_error = rc;
d_list_add_tail(&psf->psf_link, &pool_svc_failed_list);
D_RWLOCK_UNLOCK(&psfl_rwlock);
out:
D_RWLOCK_UNLOCK(&psfl_rwlock);
return ret;
}

Expand Down

0 comments on commit f92123e

Please sign in to comment.