# \[PATCH 0/3\] livepatch,sched: Add livepatch task switching to cond\_resched()

- From: Josh Poimboeuf \<jpoimboe@kernel.org\>
- Date: 2023-02-09 19:18:28 
- List: live-patching
- Page: https://ratatoskr.run/live-patching/2023/02/2096952
- Thread: https://ratatoskr.run/live-patching/2023/02/2096952/t.md

```text
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/transition.c   | 60 ++++++++++++++++++++++++++++++-
 kernel/sched/core.c             | 64 ++++++++++++++++++++++++++++-----
 6 files changed, 161 insertions(+), 16 deletions(-)
 create mode 100644 include/linux/livepatch_sched.h

-- 
2.39.0

```
