# Re: \[PATCH 3/3\] vhost: Fix livepatch timeouts in vhost\_worker()

- From: Petr Mladek \<pmladek@suse.com\>
- Date: 2023-02-15 13:31:54 
- List: live-patching
- Page: https://ratatoskr.run/live-patching/2023/02/2103073
- Thread: https://ratatoskr.run/live-patching/2023/02/2096952/t.md

```text
On Thu 2023-02-09 11:17:49, Josh Poimboeuf wrote:
> Livepatch timeouts were reported due to busy vhost_worker() kthreads.
> Now that cond_resched() can do livepatch task switching, use
> cond_resched() in vhost_worker().  That's the better way to
> conditionally call schedule() anyway.
> 
> Reported-by: Seth Forshee (DigitalOcean) <redacted>
> Link: https://lkml.kernel.org/lkml/20230120-vhost-klp-switching-v1-0-7c2b65519c43@kernel.org
> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

Reviewed-by: Petr Mladek <pmladek@suse.com>

Best Regards,
Petr
```
