Re: [PATCH] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2017-04-26 Thread Petr Mladek
On Tue 2017-04-25 14:29:48, Doug Ledford wrote: > On Mon, 2016-10-17 at 17:39 +0200, Petr Mladek wrote: > > 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 > >

Re: [PATCH] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2017-04-26 Thread Petr Mladek
On Tue 2017-04-25 14:29:48, Doug Ledford wrote: > On Mon, 2016-10-17 at 17:39 +0200, Petr Mladek wrote: > > 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 > >

Re: [PATCH] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2017-04-25 Thread Doug Ledford
On Mon, 2016-10-17 at 17:39 +0200, Petr Mladek wrote: > 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

Re: [PATCH] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2017-04-25 Thread Doug Ledford
On Mon, 2016-10-17 at 17:39 +0200, Petr Mladek wrote: > 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

[PATCH] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2016-10-17 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

[PATCH] IB/fmr_pool: Convert the cleanup thread into kthread worker API

2016-10-17 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