Re: [PATCH v3 1/1] sched: watchdog: Touch kernel watchdog with sched count

2020-10-27 Thread Xi Wang
On Mon, Oct 26, 2020 at 1:32 AM Vincent Guittot wrote: > > On Sun, 25 Oct 2020 at 00:57, Xi Wang wrote: > > > > Instead of periodically resetting watchdogs from thread context, > > this patch simply forces resched and checks rq->sched_count. > > Watchdog is reset if the sched count increases. If

Re: [PATCH v3 1/1] sched: watchdog: Touch kernel watchdog with sched count

2020-10-26 Thread Vincent Guittot
On Sun, 25 Oct 2020 at 00:57, Xi Wang wrote: > > Instead of periodically resetting watchdogs from thread context, > this patch simply forces resched and checks rq->sched_count. > Watchdog is reset if the sched count increases. If the same thread > is picked by pick_next_task during resched, there

[PATCH v3 1/1] sched: watchdog: Touch kernel watchdog with sched count

2020-10-24 Thread Xi Wang
Instead of periodically resetting watchdogs from thread context, this patch simply forces resched and checks rq->sched_count. Watchdog is reset if the sched count increases. If the same thread is picked by pick_next_task during resched, there is no context switch. With the new method we lose