block: Fix blk->in_flight during blk_wait_while_drained()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 6 repliesIn review
- v23 patches 15 repliesSuperseded
- v12 patches 4 repliesSuperseded
Changes in v3 from the cover letter
- Call blk_inc/dec_in_flight() in blk_prw() rather than inside the coroutines [Max]
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | block-backend: Reorder flush/pdiscard function definitionsblock/ | +46 | 0 replies | |
| 2/3 | block: Increase BB.in_flight for coroutine and sync interfacesblock/ include/ | +80 | 6 replies | |
| 3/3 | block: Fix blk->in_flight during blk_wait_while_drained()block/ | +5 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Vladimir Sementsov-Ogievskiy | Max Reitz |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | R-b |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH for-5.0 v3 0/3] block: Fix blk->in_flight during blk_wait_while_drained()
This fixes deadlocks when draining a BlockBackend in an iothread that receives new requests at the same time.
v3:
- Call blk_inc/dec_in_flight() in blk_prw() rather than inside the coroutines [Max]
v2:
- Rework the whole thing so that direct callers of blk_co_*() aren't broken after the series [Max]
Kevin Wolf (3):
block-backend: Reorder flush/pdiscard function definitions
block: Increase BB.in_flight for coroutine and sync interfaces
block: Fix blk->in_flight during blk_wait_while_drained()
include/sysemu/block-backend.h | 1 - block/block-backend.c | 206 ++++++++++++++++++++------------- 2 files changed, 128 insertions(+), 79 deletions(-)
Signature · 1 line
2.20.1