net/smc: fix link group scheduling, registration and work lifetime
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 8 repliesIn review
- v22 patches 0 repliesSuperseded
- v11 patch 1 replySuperseded
Changes in v3 from the cover letter
- Serialize first registration with the freeing claim, and clear conn->lgr when registration is rejected before it acquires a connection reference.
- Add the running-work lifetime fix as a separate third patch.
- Correct the cancellation comment and document commit dependencies.
- Rebase onto current net/main and validate each cumulative revision.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net/smc: serialize link group free work schedulingnet/ net/ | +8 | 0 replies | |
| 2/3 | net/smc: serialize early link group cleanup with terminationnet/ net/ | +24 | 4 replies | |
| 3/3 | net/smc: hold a link group reference for free worknet/ | +21 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH net v3 0/3] net/smc: fix link group scheduling, registration and work lifetime
This revises the two-patch v2 series and adds a separate fix for the running-free_work lifetime issue identified during review.
Patch 1 serializes delayed-work admission with the freeing transition. Patch 2 gives early cleanup a single teardown owner, pins its callers, and rejects first registration after teardown has claimed a new group. Patch 3 gives queued/running free work its own group reference while retaining asynchronous cancellation to avoid the existing wait cycle.
Each patch is a complete logical change. The work-reference acquisition, cancellation and release changes all appear together in patch 3. Patches 2 and 3 record their prerequisites in their permanent commit messages. The pre-existing callback issue remains until patch 3; no earlier commit acquires a work reference that needs a later patch to release it.
The original KASAN excerpts in patches 1 and 2 came from instrumented runs. The registration and running-callback gaps were identified by source review. No new runtime reproduction is claimed.
Changes since v2:
- Serialize first registration with the freeing claim, and clear conn->lgr when registration is rejected before it acquires a connection reference.
- Add the running-work lifetime fix as a separate third patch.
- Correct the cancellation comment and document commit dependencies.
- Rebase onto current net/main and validate each cumulative revision.
Validation:
- Applied the exported patches one at a time in a clean worktree; each resulting tree and commit message matches the corresponding source commit.
- Built net/smc/ with W=1 after each patch, with CONFIG_IPV6=y and disabled (six successful builds; CONFIG_SMC, DIBS and INFINIBAND enabled).
- Strict checkpatch: zero errors, warnings and checks for all three patches.
- Runtime and SMC hardware testing have not been performed.
v2: https://lore.kernel.org/r/[email protected]/
v1 scheduling: https://lore.kernel.org/r/[email protected]/
v1 early cleanup: https://lore.kernel.org/r/[email protected]/
Chengfeng Ye (3):
net/smc: serialize link group free work scheduling net/smc: serialize early link group cleanup with termination net/smc: hold a link group reference for free work
net/smc/af_smc.c | 8 +++++-- net/smc/smc_core.c | 59 +++++++++++++++++++++++++++++++++++----------- net/smc/smc_core.h | 2 +- 3 files changed, 52 insertions(+), 17 deletions(-)
base-commit: aaaaf87ea99b8766c9a8aa0e71aa42e6bc8a5320
Signature · 1 line
2.43.0