UBI: Don't exit from ubi_thread until kthread_should_stop() is true
authorVitaliy Gusev <vgusev@openvz.org>
Wed, 5 Nov 2008 15:27:18 +0000 (18:27 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 6 Nov 2008 10:37:49 +0000 (12:37 +0200)
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: Vitaliy Gusev <vgusev@openvz.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found