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)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 17 Jul 2009 13:04:08 +0000 (16:04 +0300)
commit0455f4100e7974dcbb816a271b26be0b9bc50f1f
tree23e1878944534c39e1bae6b0828fab07dfb30999
parent9f86c757100e40e871c561e746fca957bc54210a
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: Vitaliy Gusev <vgusev@openvz.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/wl.c