Skip to content

Commit

Permalink
Merge pull request ofiwg#6434 from aingerson/master
Browse files Browse the repository at this point in the history
prov/shm: revert add SAR buffer locking
  • Loading branch information
shefty authored Dec 15, 2020
2 parents 28309d0 + b32cc51 commit 1333fcd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions prov/shm/src/smr_progress.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ static int smr_progress_resp_entry(struct smr_ep *ep, struct smr_resp *resp,
sar_msg->sar[1].status == SMR_SAR_FREE)
break;

if (peer_smr != ep->region) {
if (fastlock_tryacquire(&peer_smr->lock))
return -FI_EAGAIN;
}
if (pending->cmd.msg.hdr.op == ofi_op_read_req)
smr_try_progress_from_sar(sar_msg, resp,
&pending->cmd, pending->iface,
Expand All @@ -98,9 +94,6 @@ static int smr_progress_resp_entry(struct smr_ep *ep, struct smr_resp *resp,
pending->device, pending->iov,
pending->iov_count, &pending->bytes_done,
&pending->next);
if (peer_smr != ep->region)
fastlock_release(&peer_smr->lock);

if (pending->bytes_done != pending->cmd.msg.hdr.size ||
sar_msg->sar[0].status != SMR_SAR_FREE ||
sar_msg->sar[1].status != SMR_SAR_FREE)
Expand Down

0 comments on commit 1333fcd

Please sign in to comment.