Re: [PATCH v9 09/12] kthread: Initial support for delayed kthread work

2016-06-20 Thread Tejun Heo
Hello, On Thu, Jun 16, 2016 at 01:17:28PM +0200, Petr Mladek wrote: > +/** > + * kthread_delayed_work_timer_fn - callback that queues the associated > kthread > + * delayed work when the timer expires. > + * @__data: pointer to the data associated with the timer > + * > + * The format of the

Re: [PATCH v9 09/12] kthread: Initial support for delayed kthread work

2016-06-20 Thread Tejun Heo
Hello, On Thu, Jun 16, 2016 at 01:17:28PM +0200, Petr Mladek wrote: > +/** > + * kthread_delayed_work_timer_fn - callback that queues the associated > kthread > + * delayed work when the timer expires. > + * @__data: pointer to the data associated with the timer > + * > + * The format of the

[PATCH v9 09/12] kthread: Initial support for delayed kthread work

2016-06-16 Thread Petr Mladek
We are going to use kthread_worker more widely and delayed works will be pretty useful. The implementation is inspired by workqueues. It uses a timer to queue the work after the requested delay. If the delay is zero, the work is queued immediately. In compare with workqueues, each work is

[PATCH v9 09/12] kthread: Initial support for delayed kthread work

2016-06-16 Thread Petr Mladek
We are going to use kthread_worker more widely and delayed works will be pretty useful. The implementation is inspired by workqueues. It uses a timer to queue the work after the requested delay. If the delay is zero, the work is queued immediately. In compare with workqueues, each work is