Re: [PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-07-05 Thread Vikram Mulukutla
On 7/4/2017 12:49 PM, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikram Mulukutla wrote: On 6/26/2017 3:18 PM, Vikram Mulukutla wrote: kthread_park waits for the target kthread to park itself with __kthread_parkme using a completion variable. __kthread_parkme - which is invoked by the target k

Re: [PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-07-05 Thread Vikram Mulukutla
On 7/4/2017 9:07 AM, Peter Zijlstra wrote: On Mon, Jun 26, 2017 at 03:18:03PM -0700, Vikram Mulukutla wrote: kernel/kthread.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kernel/kthread.c b/kernel/kthread.c index 26db528..7ad3354 100644 --- a/kernel/kthrea

Re: [PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-07-04 Thread Thomas Gleixner
On Mon, 26 Jun 2017, Vikram Mulukutla wrote: > On 6/26/2017 3:18 PM, Vikram Mulukutla wrote: > > kthread_park waits for the target kthread to park itself with > > __kthread_parkme using a completion variable. __kthread_parkme - which is > > invoked by the target kthread - sets the completion variab

Re: [PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-07-04 Thread Peter Zijlstra
On Mon, Jun 26, 2017 at 03:18:03PM -0700, Vikram Mulukutla wrote: > kernel/kthread.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/kernel/kthread.c b/kernel/kthread.c > index 26db528..7ad3354 100644 > --- a/kernel/kthread.c > +++ b/kernel/kthread.c > @@ -1

Re: [PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-06-28 Thread Vikram Mulukutla
Ping. This is happening on x86 across suspend/resume too. https://bugs.freedesktop.org/show_bug.cgi?id=100113 On 2017-06-26 16:03, Vikram Mulukutla wrote: correcting Thomas Gleixner's email address. s/linuxtronix/linutronix On 6/26/2017 3:18 PM, Vikram Mulukutla wrote: kthread_park waits for

Re: [PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-06-26 Thread Vikram Mulukutla
correcting Thomas Gleixner's email address. s/linuxtronix/linutronix On 6/26/2017 3:18 PM, Vikram Mulukutla wrote: kthread_park waits for the target kthread to park itself with __kthread_parkme using a completion variable. __kthread_parkme - which is invoked by the target kthread - sets the com

[PATCH] kthread: Atomically set completion and perform dequeue in __kthread_parkme

2017-06-26 Thread Vikram Mulukutla
kthread_park waits for the target kthread to park itself with __kthread_parkme using a completion variable. __kthread_parkme - which is invoked by the target kthread - sets the completion variable before calling schedule() to voluntarily get itself off of the runqueue. This causes an interesting r