[PATCH] [JFFS2] Prevent list corruption when handling write errors

Artem Bityutskiy dedekind at infradead.org
Thu Mar 29 05:59:42 EDT 2007

On Thu, 2007-03-29 at 11:52 +0200, Joakim Tjernlund wrote:
> On Thu, 2007-03-29 at 11:00 +0300, Adrian Hunter wrote:
> > If a write error occurs, the affected block is placed on the
> > bad_used_list.  In the case that the write error occured
> > when writing summary data the block was also being placed on
> > the dirty_list, which caused list corruption and ultimately
> > a soft lockup in jffs2_mark_node_obsolete. This fixes that.
> I thougth that node obsoleting was disabled when summary is active?

Of course not. On-flash obsoleting is disabled, but not in-RAM.

Best regards,
Artem Bityutskiy (Битюцкий Артём)

More information about the linux-mtd mailing list