* [PATCH] UBI: Don't exit from ubi_thread until kthread_should_stop() is true
@ 2008-11-05 15:27 Vitaliy Gusev
2008-11-06 7:22 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Vitaliy Gusev @ 2008-11-05 15:27 UTC (permalink / raw)
To: David Woodhouse; +Cc: Artem Bityutskiy, linux-mtd
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>
---
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index 05d7093..dcb6dac 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-06 7:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05 15:27 [PATCH] UBI: Don't exit from ubi_thread until kthread_should_stop() is true Vitaliy Gusev
2008-11-06 7:22 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox