Project

General

Profile

Bug #24567

fix a race between Thread::create and Thread::set_ioprio

Added by jianpeng ma about 2 years ago. Updated about 2 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Category:
common
Target version:
-
% Done:

100%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

We may do the following process:
a)Thread::create/try_create
b)Thread::set_ioprio

But the entry of Thread maybe not exec after step a) which cause step b)
can't set currently ioprio.
To fix potential race, i add mutex which make step b) wait until entry
exec.

History

#2 Updated by John Spray about 2 years ago

  • Status changed from New to Fix Under Review

Also available in: Atom PDF