mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
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:
parent
0a8ceaa3a5
commit
13ed4504d9
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user