|
@@ -1505,6 +1505,7 @@ int ubi_thread(void *u)
|
|
|
}
|
|
|
|
|
|
dbg_wl("background thread \"%s\" is killed", ubi->bgt_name);
|
|
|
+ ubi->thread_enabled = 0;
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -1514,9 +1515,6 @@ int ubi_thread(void *u)
|
|
|
*/
|
|
|
static void shutdown_work(struct ubi_device *ubi)
|
|
|
{
|
|
|
-#ifdef CONFIG_MTD_UBI_FASTMAP
|
|
|
- flush_work(&ubi->fm_work);
|
|
|
-#endif
|
|
|
while (!list_empty(&ubi->works)) {
|
|
|
struct ubi_work *wrk;
|
|
|
|