public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Move erasing to the GC thread.
@ 2010-02-17  8:16 Joakim Tjernlund
  2010-02-17  8:16 ` [PATCH 1/2] jffs2: Move erasing from write_super to GC Joakim Tjernlund
  0 siblings, 1 reply; 7+ messages in thread
From: Joakim Tjernlund @ 2010-02-17  8:16 UTC (permalink / raw)
  To: linux-mtd; +Cc: Joakim Tjernlund

Current JFFS2 erases blocks from write_super() which is
problematic as a reboot while erasing will make the
umount hang until all blocks has been erased.

These patches address this problem by moving the erasing
to the GC task instead, leaving write_super() to only
handle dirty data.

Joakim Tjernlund (2):
  jffs2: Move erasing from write_super to GC.
  jffs2: Make jffs2_erase_pending_trigger() initiate GC.

 fs/jffs2/background.c |    1 +
 fs/jffs2/erase.c      |    7 +++++--
 fs/jffs2/nodemgmt.c   |    4 ++++
 fs/jffs2/os-linux.h   |    9 +++++++--
 fs/jffs2/super.c      |    2 --
 fs/jffs2/wbuf.c       |    2 +-
 6 files changed, 18 insertions(+), 7 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-18 13:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17  8:16 [PATCH 0/2] Move erasing to the GC thread Joakim Tjernlund
2010-02-17  8:16 ` [PATCH 1/2] jffs2: Move erasing from write_super to GC Joakim Tjernlund
2010-02-17  8:16   ` [PATCH 2/2] jffs2: Make jffs2_erase_pending_trigger() initiate GC Joakim Tjernlund
2010-02-18 11:06   ` [PATCH 1/2] jffs2: Move erasing from write_super to GC Artem Bityutskiy
2010-02-18 12:17     ` Joakim Tjernlund
2010-02-18 12:22       ` Artem Bityutskiy
2010-02-18 13:12         ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox