Skip to content

Commit

Permalink
prov/tcp: Fix data race caused by parallel access to xnet_rdm_fid_ops
Browse files Browse the repository at this point in the history
  • Loading branch information
dsciebu committed Jan 27, 2025
1 parent 0e6f63f commit edd297e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prov/tcp/src/xnet_rdm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ static struct fi_ops xnet_rdm_fid_ops = {
.close = xnet_rdm_close,
.bind = ofi_ep_fid_bind,
.control = xnet_rdm_ctrl,
.ops_open = fi_no_ops_open,
.ops_open = xnet_rdm_ops_open,
};

static int xnet_init_rdm(struct xnet_rdm *rdm, struct fi_info *info)
Expand Down Expand Up @@ -1101,7 +1101,6 @@ int xnet_rdm_ep(struct fid_domain *domain, struct fi_info *info,
(*ep_fid)->rma = &xnet_rdm_rma_ops;
(*ep_fid)->tagged = &xnet_rdm_tagged_ops;
(*ep_fid)->atomic = &xnet_rdm_atomic_ops;
(*ep_fid)->fid.ops->ops_open = xnet_rdm_ops_open;

return 0;

Expand Down

0 comments on commit edd297e

Please sign in to comment.