Uwe Kleine-König
e890591413
siox: don't create a thread without starting it
...
When a siox master device is registered a kthread is created that is
only started when triggered by userspace. So this thread might be in
TASK_UNINTERRUPTIBLE state for long and trigger a warning
[ 241.130465] INFO: task siox-0:626 blocked for more than 120 seconds.
with the respective debug settings enabled. It might be right to put an
unstarted thread to TASK_IDLE (in kernel/kthread.c:kthread()) instead,
but independant of this discussion it is cleaner for
siox_master_register() to start the thread immediately. The effect is
that it enters its own waiting state and then stays in state TASK_IDLE
which doesn't trigger the above warning.
As siox_poll_thread() uses some variables of the device the
initialisation of these is moved before thread creation.
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Acked-by: Gavin Schenk <g.schenk@eckelmann.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-07-07 17:38:57 +02:00
..
2018-06-21 14:19:08 +02:00
2018-06-06 13:49:25 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-22 05:57:36 +09:00
2018-06-04 10:58:12 -07:00
2018-06-24 06:33:54 +08:00
2018-06-17 08:38:55 +09:00
2018-06-12 18:28:00 -07:00
2018-06-12 16:19:22 -07:00
2018-07-07 17:35:00 +02:00
2018-06-15 18:10:01 -03:00
2018-06-24 19:16:42 +08:00
2018-06-06 18:39:49 -07:00
2018-06-19 10:40:29 +02:00
2018-06-07 10:23:33 -07:00
2018-06-24 06:31:54 +08:00
2018-06-08 17:21:52 -07:00
2018-06-12 16:19:22 -07:00
2018-06-15 18:10:01 -03:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-22 10:58:27 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 14:05:39 +10:00
2018-06-28 20:32:51 +09:00
2018-06-12 16:19:22 -07:00
2018-06-22 11:03:43 +10:00
2018-07-03 13:02:28 +02:00
2018-07-03 13:09:15 +02:00
2018-06-16 16:40:36 -07:00
2018-06-11 12:09:19 -07:00
2018-06-12 16:19:22 -07:00
2018-06-14 16:21:46 +09:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-21 07:22:30 +09:00
2018-07-03 13:02:28 +02:00
2018-06-12 18:28:00 -07:00
2018-07-07 17:19:27 +02:00
2018-06-22 14:22:02 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-24 06:33:54 +08:00
2018-06-07 10:23:33 -07:00
2018-06-12 16:19:22 -07:00
2018-06-15 18:10:01 -03:00
2018-06-17 05:25:18 +09:00
2018-06-12 18:28:00 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-14 16:21:46 +09:00
2018-07-07 17:38:57 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 18:28:00 -07:00
2018-07-03 13:02:28 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 18:28:00 -07:00
2018-06-05 16:20:22 -07:00
2018-06-08 15:16:44 -07:00
2018-06-21 18:59:46 +02:00
2018-07-07 17:30:46 +02:00
2018-06-12 18:28:00 -07:00
2018-06-19 15:53:32 +05:30
2018-06-12 16:19:22 -07:00
2018-06-04 10:58:12 -07:00
2018-06-15 18:10:01 -03:00
2018-06-12 18:28:00 -07:00
2018-06-12 16:19:22 -07:00
2018-05-29 16:38:16 +01:00
2018-06-06 18:39:49 -07:00
2018-06-18 07:55:57 +02:00
2018-07-03 13:01:57 +02:00
2018-06-07 12:34:37 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-20 07:59:53 +09:00
2018-06-14 16:25:43 +09:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-15 07:55:25 +09:00
2018-06-12 18:28:00 -07:00
2018-06-04 12:35:03 -07:00
2018-06-11 07:20:17 -07:00
2018-06-19 07:44:51 +09:00
2018-06-15 18:10:01 -03:00
2018-07-03 13:02:28 +02:00
2018-06-12 16:19:22 -07:00
2018-07-07 17:38:57 +02:00
2018-07-07 17:25:23 +02:00
2018-06-15 07:55:25 +09:00
2018-06-15 18:11:26 -03:00
2018-06-12 16:19:22 -07:00
2018-06-15 18:10:01 -03:00
2018-06-12 16:19:22 -07:00
2018-06-12 18:28:00 -07:00
2018-06-15 07:31:07 +09:00
2018-06-12 16:19:22 -07:00
2018-06-15 07:31:07 +09:00
2018-06-12 16:19:22 -07:00
2018-06-12 13:11:26 -07:00
2018-06-16 06:35:02 +09:00
2018-07-03 13:02:28 +02:00
2018-06-12 16:19:22 -07:00
2018-06-16 06:35:02 +09:00
2018-07-07 17:27:13 +02:00
2018-06-12 12:56:02 -07:00
2018-06-23 20:44:11 +08:00
2018-06-06 17:27:14 -07:00
2018-06-28 20:29:47 +09:00
2018-06-28 20:29:47 +09:00