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 09:13:04 +0000 (11:13 +0200)
commit2ad49887150894b9ed6a87a76b409adceee6b074
tree039adb30a0b50f2aac58a81ee25bcdc39df79a22
parentb77bcb07897f1a9cd9d1d78691896dcdb0fd1a22
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