public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Larry Doolittle <ldoolitt@recycle.lbl.gov>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: No clean _or_ dirty blocks to GC from!
Date: Fri, 5 Oct 2001 10:59:19 -0700	[thread overview]
Message-ID: <20011005105919.A28963@recycle.lbl.gov> (raw)
In-Reply-To: <15283.1002287554@redhat.com>; from David Woodhouse on Fri, Oct 05, 2001 at 02:12:34PM +0100

> > 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)

  reply	other threads:[~2001-10-05 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-04 16:35 No clean _or_ dirty blocks to GC from! Larry Doolittle
2001-10-04 20:13 ` Russ Dill
2001-10-04 21:12   ` Larry Doolittle
2001-10-04 23:02   ` Larry Doolittle
2001-10-05 13:12     ` David Woodhouse
2001-10-05 17:59       ` Larry Doolittle [this message]
2001-10-08  9:23         ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011005105919.A28963@recycle.lbl.gov \
    --to=ldoolitt@recycle.lbl.gov \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox