mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc
@ 2008-05-29 11:38 Alexey Korolev
  2008-05-30 19:24 ` Jared Hulbert
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey Korolev @ 2008-05-29 11:38 UTC (permalink / raw)
  To: dwmw2, linux-mtd; +Cc: linux-kernel

Hi, 

One of recent patches broke JFFS2 power loss recoverability.
We faced the issue in Linux 2.6.25 and 2.6.26-rc but not in 2.6.24,
2.6.23.

If to reboot platform during file write. And try to read it again rest
of file will contain trash. 
Issue is well reproducible on NAND, especially if to delete large file
before write and reboot.

We made some investigations for this issue and found commit number which
breaks JFFS2 power loss recoverability.
It is:  [JFFS2] Improve getdents vs. f_pos handling on NOR flash.
        http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=15953580e79b58caefb107e77f218e009b9992e6

Currently we don't know why it breaks JFFS2 and how it could be fixed
except roll back. 
So I would much appreciate any ideas on how it could be fixed. 


Thanks


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

* Re: [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc
  2008-05-29 11:38 [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc Alexey Korolev
@ 2008-05-30 19:24 ` Jared Hulbert
  2008-06-02 11:41   ` Alexey Korolev
  0 siblings, 1 reply; 5+ messages in thread
From: Jared Hulbert @ 2008-05-30 19:24 UTC (permalink / raw)
  To: Alexey Korolev; +Cc: dwmw2, linux-mtd, linux-kernel

> We made some investigations for this issue and found commit number which
> breaks JFFS2 power loss recoverability.
> It is:  [JFFS2] Improve getdents vs. f_pos handling on NOR flash.
>        http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=15953580e79b58caefb107e77f218e009b9992e6
>
> Currently we don't know why it breaks JFFS2 and how it could be fixed
> except roll back.

Does everything work when you unmerge this one commit?

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

* Re: [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc
  2008-05-30 19:24 ` Jared Hulbert
@ 2008-06-02 11:41   ` Alexey Korolev
  2008-06-02 11:56     ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey Korolev @ 2008-06-02 11:41 UTC (permalink / raw)
  To: Jared Hulbert; +Cc: dwmw2, linux-mtd, linux-kernel

Hi,
> > We made some investigations for this issue and found commit number which
> > breaks JFFS2 power loss recoverability.
> > It is:  [JFFS2] Improve getdents vs. f_pos handling on NOR flash.
> >        http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=15953580e79b58caefb107e77f218e009b9992e6
> >
> > Currently we don't know why it breaks JFFS2 and how it could be fixed
> > except roll back.
> 
> Does everything work when you unmerge this one commit?
> 
Correct, commit roll back fixes the problem. 

Thanks
Alexey

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

* Re: [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc
  2008-06-02 11:41   ` Alexey Korolev
@ 2008-06-02 11:56     ` David Woodhouse
  2008-06-03  9:05       ` Alexey Korolev
  0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2008-06-02 11:56 UTC (permalink / raw)
  To: Alexey Korolev; +Cc: Jared Hulbert, linux-mtd, linux-kernel

On Mon, 2008-06-02 at 12:41 +0100, Alexey Korolev wrote:
> Hi,
> > > We made some investigations for this issue and found commit number which
> > > breaks JFFS2 power loss recoverability.
> > > It is:  [JFFS2] Improve getdents vs. f_pos handling on NOR flash.
> > >        http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=15953580e79b58caefb107e77f218e009b9992e6
> > >
> > > Currently we don't know why it breaks JFFS2 and how it could be fixed
> > > except roll back.
> > 
> > Does everything work when you unmerge this one commit?
> > 
> Correct, commit roll back fixes the problem. 

But leaves another one. I was away last week, and I'm home now -- I'll
try to reproduce and understand what's going on.

-- 
dwmw2


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

* Re: [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc
  2008-06-02 11:56     ` David Woodhouse
@ 2008-06-03  9:05       ` Alexey Korolev
  0 siblings, 0 replies; 5+ messages in thread
From: Alexey Korolev @ 2008-06-03  9:05 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Jared Hulbert, linux-mtd, linux-kernel

Hi David,
> On Mon, 2008-06-02 at 12:41 +0100, Alexey Korolev wrote:
> > Hi,
> > > > We made some investigations for this issue and found commit number which
> > > > breaks JFFS2 power loss recoverability.
> > > > It is:  [JFFS2] Improve getdents vs. f_pos handling on NOR flash.
> > > >        http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=15953580e79b58caefb107e77f218e009b9992e6
> > > >
> > > > Currently we don't know why it breaks JFFS2 and how it could be fixed
> > > > except roll back.
> > > 
> > > Does everything work when you unmerge this one commit?
> > > 
> > Correct, commit roll back fixes the problem. 
> 
> But leaves another one. I was away last week, and I'm home now -- I'll
> try to reproduce and understand what's going on.
> 
> 
We made more investigations of this problem. Joakim has assisted us to understan the patch. This patch can't break PLR feature on NAND. The only way it affects on tests is timing. So commit roll back will not fix the problem, but hides. 

Now we are collecting more information about the problem. We will let you know as
soon as we find something interesting about it. 

Thanks,
Alexey


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

end of thread, other threads:[~2008-06-03  9:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-29 11:38 [BUG] JFFS2 power loss recovery issues in 2.6.25, 2.6.26-rc Alexey Korolev
2008-05-30 19:24 ` Jared Hulbert
2008-06-02 11:41   ` Alexey Korolev
2008-06-02 11:56     ` David Woodhouse
2008-06-03  9:05       ` Alexey Korolev

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

all inboxes | Powered by JetHome®