From: David Woodhouse <dwmw2@infradead.org>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] jffs2: Move erasing from write_super to GC.
Date: Tue, 18 May 2010 16:46:27 +0100 [thread overview]
Message-ID: <1274197587.6930.7407.camel@macbook.infradead.org> (raw)
In-Reply-To: <OF7E076EC4.DAE6F9AF-ONC1257723.0042AFF4-C1257723.00430591@transmode.se>
On Fri, 2010-05-14 at 14:12 +0200, Joakim Tjernlund wrote:
> @@ -167,8 +170,6 @@ static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblo
> list_move_tail(&jeb->list, &c->erase_complete_list);
> spin_unlock(&c->erase_completion_lock);
> mutex_unlock(&c->erase_free_sem);
> - /* Ensure that kupdated calls us again to mark them clean */
> - jffs2_erase_pending_trigger(c);
> }
>
> static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset)
Why remove this? If you have asynchronous erases, with the erase
callback (and hence this jffs2_erase_succeeded function) getting called
asynchronously, then we _do_ want to trigger the GC thread to run, to
that it can write the cleanmarker to the block and refile it on the
empty_list.
--
dwmw2
next prev parent reply other threads:[~2010-05-18 15:46 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-20 10:03 [PATCH] jffs2: Move erasing from write_super to GC Joakim Tjernlund
2010-03-30 12:57 ` Artem Bityutskiy
2010-03-30 13:04 ` Joakim Tjernlund
2010-05-13 17:16 ` David Woodhouse
2010-05-14 10:10 ` Joakim Tjernlund
2010-05-14 10:35 ` David Woodhouse
2010-05-14 11:07 ` Joakim Tjernlund
2010-05-14 12:12 ` Joakim Tjernlund
2010-05-17 15:35 ` Joakim Tjernlund
2010-05-18 15:46 ` David Woodhouse [this message]
2010-05-18 18:19 ` Joakim Tjernlund
2010-05-18 18:37 ` David Woodhouse
2010-05-18 18:59 ` David Woodhouse
2010-05-18 22:44 ` Joakim Tjernlund
2010-05-18 23:42 ` David Woodhouse
2010-05-19 9:47 ` Joakim Tjernlund
2010-05-19 10:05 ` David Woodhouse
2010-05-19 10:36 ` Joakim Tjernlund
2010-05-19 16:49 ` David Woodhouse
2010-05-19 20:06 ` Joakim Tjernlund
2010-05-19 21:24 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2010-02-26 9:19 Joakim Tjernlund
2010-02-15 7:40 Joakim Tjernlund
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=1274197587.6930.7407.camel@macbook.infradead.org \
--to=dwmw2@infradead.org \
--cc=joakim.tjernlund@transmode.se \
--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