RFC migration/multifd: quit unitifications and separate sync packet
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest7 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | migration: Drop stale comment for multifd zero copymigration/ | +0 | 1 reply | |
| 2/7 | migration: Fix error leak in multifd_tls_outgoing_handshake()migration/ | +1 | 1 reply | |
| 3/7 | migration: multifd_send_kick_main()migration/ | +15 | 4 replies | |
| 4/7 | migration: Drop MultiFDSendParams.quit and cleanup error pathsmigration/ migration/ | +26 | 4 replies | |
| 5/7 | migration: Modulize multifd send threads with a few helpersmigration/ | +96 | 0 replies | |
| 6/7 | migration: Split multifd pending_job into two booleansmigration/ migration/ | +33 | 2 replies | |
| 7/7 | migration: Further unify paths for multifd normal or sync requestsmigration/ | +25 | 0 replies |
Reviews trailers per patch
3 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Fabiano Rosas |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 0/7] migration/multifd: quit unitifications and separate sync packet
This is an RFC series, at least for 9.0, so not urgent for this release. Just for early reviews.
Said so, patch 1 could be a bugfix, didn't copy stable as I don't think it's worthwhile. Maybe worth picking up even soon.
This series majorly does two things as mentioned in the subject, namely:
1) Quit unifications: after read Fabiano's patch, I moved that further to drop p->quit, meanwhile I found some path that may miss things here and there. Got all of them cleaned/fixed up.
2) Separate SYNC packet: it seems the SYNC packet is confusing in multifd, where it's the only case that main thread can modify p->flags too. The field "pending_job" is also confusing to be an integer. Split it can be helpful to make multifd code more readable, meanwhile making pending_job a boolean (with yet another one added pending_sync for SYNC).
I think I'm more confident 1) is a good idea, maybe not 2). The last patch I put it last because I think it reduces duplication, but I'm not sure whether that's a common flavour of how code should be written. Let me know your opinions. Thanks,
Peter Xu (7):
migration: Drop stale comment for multifd zero copy
migration: Fix error leak in multifd_tls_outgoing_handshake()
migration: multifd_send_kick_main()
migration: Drop MultiFDSendParams.quit and cleanup error paths
migration: Modulize multifd send threads with a few helpers
migration: Split multifd pending_job into two booleans
migration: Further unify paths for multifd normal or sync requests
migration/multifd.h | 18 +-- migration/multifd.c | 307 +++++++++++++++++++++++--------------------- 2 files changed, 170 insertions(+), 155 deletions(-)
Signature · 1 line
2.41.0