No clean _or_ dirty blocks to GC from!

Larry Doolittle ldoolitt at recycle.lbl.gov
Fri Oct 5 13:59:19 EDT 2001


> > 3. Don't trigger the GC on mount unless there is something to do. 
> 
> The first thing the thread does on mount is sleep anyway. I'm not sure why 
> it's getting woken.

It doesn't exactly get woken, it just has insomnia.  :-)
This one-liner "fixes" it for me.

      - Larry

--- background.c.orig	Fri Oct  5 10:56:36 2001
+++ background.c	Fri Oct  5 10:56:50 2001
@@ -118,6 +118,7 @@
 		if (!thread_should_wake(c)) {
                         set_current_state (TASK_INTERRUPTIBLE);
 			D1(printk(KERN_DEBUG "jffs2_garbage_collect_thread sleeping...\n"));
+			schedule();
 		}
                 
 		if (current->need_resched)




More information about the linux-mtd mailing list