Skip to content

livepatch,sched: Add livepatch task switching to cond_resched()

Josh Poimboeuf live-patching lkml 3 versions – Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 5 repliesApplied
  2. v23 patches 4 repliesSuperseded
  3. v13 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Add barriers (pmladek)
- Update comments

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3livepatch: Skip task_call_func() for current taskkernel/livepatch/transition.c+5 -10 replies
2/3livepatch,sched: Add livepatch task switching to cond_resched()include/linux/livepatch.h include/linux/livepatch_sched.h include/linux/sched.h +3 more+194 -286 replies
3/3vhost: Fix livepatch timeouts in vhost_worker()drivers/vhost/vhost.c+1 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSeth Forshee (DigitalOcean)Petr MladekMiroslav Benes
SeriesA-b
1/3T-b R-b
2/3T-b R-b
3/3T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] livepatch,sched: Add livepatch task switching to cond_resched()

v3:
- Add barriers (pmladek)
- Update comments

v2:
- Avoid calling klp_cond_resched_disable() in klp_cancel_transition()
- Fix race in klp_reverse_transition()

Fix patching stalls caused by busy kthreads.

Josh Poimboeuf (3):
livepatch: Skip task_call_func() for current task livepatch,sched: Add livepatch task switching to cond_resched()
vhost: Fix livepatch timeouts in vhost_worker()

 drivers/vhost/vhost.c           |   3 +-
 include/linux/livepatch.h       |   1 +
 include/linux/livepatch_sched.h |  29 ++++++++
 include/linux/sched.h           |  20 ++++--
 kernel/livepatch/core.c         |   1 +
 kernel/livepatch/transition.c   | 113 +++++++++++++++++++++++++++-----
 kernel/sched/core.c             |  64 +++++++++++++++---
 7 files changed, 200 insertions(+), 31 deletions(-)
 create mode 100644 include/linux/livepatch_sched.h
Signature · 1 line
2.39.1