Re: [PATCH v2] iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"

2016-08-21 Thread Jonathan Cameron
On 21/08/16 13:26, Lars-Peter Clausen wrote: > On 08/21/2016 01:21 PM, Jonathan Cameron wrote: > [...] >> I've applied to this to the fixes-togreg branch of iio.git >> >> For now I haven't marked it for stable, purely because I'm not sure >> when the first 'problem' usage was introduced. I'm happy

Re: [PATCH v2] iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"

2016-08-21 Thread Lars-Peter Clausen
On 08/21/2016 01:21 PM, Jonathan Cameron wrote: [...] > I've applied to this to the fixes-togreg branch of iio.git > > For now I haven't marked it for stable, purely because I'm not sure > when the first 'problem' usage was introduced. I'm happy to explicitly > send a request for stable inclusion

Re: [PATCH v2] iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"

2016-08-21 Thread Jonathan Cameron
On 16/08/16 16:27, Lars-Peter Clausen wrote: > On 08/15/2016 05:54 PM, Jonathan Cameron wrote: >> On 09/08/16 01:19, Brian Norris wrote: >>> When using CONFIG_DEBUG_ATOMIC_SLEEP, the scheduler nicely points out >>> that we're calling sleeping primitives within the wait_event loop, which >>> means w

Re: [PATCH v2] iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"

2016-08-16 Thread Lars-Peter Clausen
On 08/15/2016 05:54 PM, Jonathan Cameron wrote: > On 09/08/16 01:19, Brian Norris wrote: >> When using CONFIG_DEBUG_ATOMIC_SLEEP, the scheduler nicely points out >> that we're calling sleeping primitives within the wait_event loop, which >> means we might clobber the task state: >> >> [ 10.831289

Re: [PATCH v2] iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"

2016-08-15 Thread Jonathan Cameron
On 09/08/16 01:19, Brian Norris wrote: > When using CONFIG_DEBUG_ATOMIC_SLEEP, the scheduler nicely points out > that we're calling sleeping primitives within the wait_event loop, which > means we might clobber the task state: > > [ 10.831289] do not call blocking ops when !TASK_RUNNING; state=1

[PATCH v2] iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"

2016-08-08 Thread Brian Norris
When using CONFIG_DEBUG_ATOMIC_SLEEP, the scheduler nicely points out that we're calling sleeping primitives within the wait_event loop, which means we might clobber the task state: [ 10.831289] do not call blocking ops when !TASK_RUNNING; state=1 set at [] [ 10.845531] [ cut here