提交 2ad49887 编写于 作者: V Vitaliy Gusev 提交者: Artem Bityutskiy

UBI: Don't exit from ubi_thread until kthread_should_stop() is true

If ubi_thread() exits but kthread_should_stop() is not true
then kthread_stop() will never return and cleanup thread
will forever stay in "D" state.
Signed-off-by: NVitaliy Gusev <vgusev@openvz.org>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 b77bcb07
......@@ -1396,7 +1396,8 @@ int ubi_thread(void *u)
ubi_msg("%s: %d consecutive failures",
ubi->bgt_name, WL_MAX_FAILURES);
ubi_ro_mode(ubi);
break;
ubi->thread_enabled = 0;
continue;
}
} else
failures = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册