Skip to content

Commit

Permalink
Merge pull request ceph#17016 from chuanhong-wang/dev_rdma_dead_lock
Browse files Browse the repository at this point in the history
Fix a dead lock when doing rdma performance test by fio

Reviewed-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 authored Aug 15, 2017
2 parents 6149572 + 13ed450 commit fba5823
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/msg/async/rdma/RDMAStack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ void RDMADispatcher::polling_start()

void RDMADispatcher::polling_stop()
{
Mutex::Locker l(lock);
done = true;
{
Mutex::Locker l(lock);
done = true;
}

if (!t.joinable())
return;

Expand Down

0 comments on commit fba5823

Please sign in to comment.