Fix a dead lock when running fio: "RDMADispatcher::polling_stop" hold the lock and wait

"RDMADispatcher::polling" ending, then RDMADispatcher::polling can't hold the lock and
can't end its work.

Signed-off-by: Wang Chuanhong <chuanhong.wang@163.com>
This commit is contained in:
chuanhong.wang 2017-08-14 08:49:28 +00:00
parent 0a8ceaa3a5
commit 13ed4504d9

View File

@ -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;