Re: [PATCH v9 08/12] kthread: Detect when a kthread work is used by more workers

2016-06-20 Thread Tejun Heo
Hello, On Thu, Jun 16, 2016 at 01:17:27PM +0200, Petr Mladek wrote: > diff --git a/kernel/kthread.c b/kernel/kthread.c > index 567ec49b4872..8e9548649c86 100644 > --- a/kernel/kthread.c > +++ b/kernel/kthread.c > @@ -574,6 +574,9 @@ EXPORT_SYMBOL_GPL(__kthread_init_worker); > * The works are

Re: [PATCH v9 08/12] kthread: Detect when a kthread work is used by more workers

2016-06-20 Thread Tejun Heo
Hello, On Thu, Jun 16, 2016 at 01:17:27PM +0200, Petr Mladek wrote: > diff --git a/kernel/kthread.c b/kernel/kthread.c > index 567ec49b4872..8e9548649c86 100644 > --- a/kernel/kthread.c > +++ b/kernel/kthread.c > @@ -574,6 +574,9 @@ EXPORT_SYMBOL_GPL(__kthread_init_worker); > * The works are

[PATCH v9 08/12] kthread: Detect when a kthread work is used by more workers

2016-06-16 Thread Petr Mladek
Nothing currently prevents a work from queuing for a kthread worker when it is already running on another one. This means that the work might run in parallel on more workers. Also some operations, e.g. flush or drain are not reliable. This problem will be even more visible after we add

[PATCH v9 08/12] kthread: Detect when a kthread work is used by more workers

2016-06-16 Thread Petr Mladek
Nothing currently prevents a work from queuing for a kthread worker when it is already running on another one. This means that the work might run in parallel on more workers. Also some operations, e.g. flush or drain are not reliable. This problem will be even more visible after we add