Re: [RFC PATCH 08/14] rcu: Convert RCU gp kthreads into kthread worker API

2015-07-28 Thread Tejun Heo
On Tue, Jul 28, 2015 at 04:39:25PM +0200, Petr Mladek wrote: ... > -static int __noreturn rcu_gp_kthread(void *arg) > +static void rcu_gp_kthread_func(struct kthread_work *work) > { > int fqs_state; > int gf; > unsigned long j; > int ret; > - struct rcu_state *rsp = arg

[RFC PATCH 08/14] rcu: Convert RCU gp kthreads into kthread worker API

2015-07-28 Thread Petr Mladek
Kthreads are currently implemented as an infinite loop. Each has its own variant of checks for terminating, freezing, awakening. In many cases it is unclear to say in which state it is and sometimes it is done a wrong way. The plan is to convert kthreads into kthread_worker or workqueues API. It a