Repository navigation
librados/asio: clear cancellation slot in associated executor - #68873
Conversation
|
jenkins retest this please |
|
jenkins test signed |
|
jenkins test windows |
|
Linking the integration test here reproducing the cancellation slot race along with the TSAN report. https://pad.ceph.com/p/q8z36PhuRaQMohpejX7b. With this PR, the testcase passes successfully. |
|
@cbodley the squash commit needs your signoff. |
pass the unique_aio_completion_ptr into a wrapped completion handler to extend its lifetime past the end of the AsyncOp::aio_dispatch() callback Signed-off-by: Casey Bodley <[email protected]>
the librados callback function `AsyncOp::aio_dispatch()` runs on Objecter's finisher strand executor, and dispatches the completion handler to its associated executor asio cancellation is not thread-safe, so should be synchronized on that associated executor. move the call to `slot.clear()` from that librados callback into the AsyncHandler wrapper so it doesn't run until we've switched to the correct executor because our `op_cancellation` handler depends on an `AioCompletion` pointer, we have to clear the cancellation slot before that `AioCompletion` lifetime ends Fixes: https://tracker.ceph.com/issues/73475 Signed-off-by: Casey Bodley <[email protected]>
|
from windows build https://jenkins.ceph.com/job/ceph-windows-pull-requests/78703/consoleFull
i added a constructor to AsyncHandler |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
the librados callback function
AsyncOp::aio_dispatch()runs on Objecter's finisher strand executor, and dispatches the completion handler to its associated executorasio cancellation is not thread-safe, so should be synchronized on that associated executor. move the call to
slot.clear()from that librados callback into the AsyncHandler wrapper so it doesn't run until we've switched to the correct executorbecause our
op_cancellationhandler depends on anAioCompletionpointer, we have to clear the cancellation slot before thatAioCompletionlifetime endsFixes: https://tracker.ceph.com/issues/73475
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.