Project

General

Profile

Actions

Bug #24567

open

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

Added by jianpeng ma almost 6 years ago. Updated almost 6 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 (v1):
Crash signature (v2):

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.

Actions #2

Updated by John Spray almost 6 years ago

  • Status changed from New to Fix Under Review
Actions

Also available in: Atom PDF