[blk-threaded - 6/12] block: add worker thread reset and teardown - #6127
Open
PierreBertholom wants to merge 1 commit into
Open
[blk-threaded - 6/12] block: add worker thread reset and teardown#6127PierreBertholom wants to merge 1 commit into
PierreBertholom wants to merge 1 commit into
Conversation
Add a reset path that returns data-path resources to the VMM thread and parks the worker for reactivation. Move ownership transitions into `_reset()` so failures are reported before virtio state and queues are reset. Drain and join the active worker thread when dropping the device. Signed-off-by: Pierre Bertholom <pbertho@amazon.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pbertho/blk-threaded-05 #6127 +/- ##
===========================================================
+ Coverage 81.95% 82.48% +0.53%
===========================================================
Files 278 278
Lines 31314 31356 +42
===========================================================
+ Hits 25663 25865 +202
+ Misses 5651 5491 -160
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[6/12] part of the PR stack starting with #6123
Changes
Add a reset path that returns data-path resources to the VMM thread
and parks the worker for reactivation.
Move ownership transitions into
_reset()so failures are reportedbefore virtio state and queues are reset. Drain and join the active
worker thread when dropping the device.