Repository navigation
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
e8a5723 to
d8c7696
Compare
|
@rzarzynski Could you take a look, or point me to the right reviewer? These are ThreadSanitizer data race fixes in log, msg, common and blk. |
|
These are independent, small ThreadSanitizer data race fixes. Could you each review the commits in your area? @aainscow: 85d0c66 (log), 40f7807 (test/osd EventLoop) |
blk/kenrel piece looks good to me. But honestly I'd prefer having individual fixing PR per module/subsystem. Approvals collection would have a clearer path then. E.g. I'm not sure how to approve this whole PR given I've reviewed kernel part only... |
_aio_stop() sets aio_stop while the aio thread polls it:
WARNING: ThreadSanitizer: data race
Write of size 1 by main thread:
#0 KernelDevice::_aio_stop() src/blk/kernel/KernelDevice.cc:587
ceph#1 KernelDevice::close() src/blk/kernel/KernelDevice.cc:377
Previous read of size 1 by thread T3:
#0 KernelDevice::_aio_thread() src/blk/kernel/KernelDevice.cc:694
Thread T3 'bstore_aio' created by main thread
Relaxed ordering is enough: aio_stop guards no other data, and
_aio_stop() joins the thread after waking it with a read.
Assisted-by: claude-opus-5-5
Signed-off-by: Dominik Raddatz <[email protected]>
d8c7696 to
feed08e
Compare
|
@ifed01 split as you suggested: this PR now has only the blk/kernel commit. |
|
@ifed01 thanks for the review! Could you add needs-qa? |
done |
|
This PR has been added to wip-bharath1-testing-20261114.051618-main. |
Fixes a data race that ThreadSanitizer reports in 4 unit tests (51 reports, now 0). The other fixes moved to #73712, #73713 and #73714.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.