LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* RE: Abnormal behavior with JFFS2 on latest kernel
[not found] ` <1203065237.5419.74.camel@gentoo-jocke.transmode.se>
@ 2008-02-15 8:56 ` Kyungmin Park
2008-02-15 8:59 ` Joakim Tjernlund
0 siblings, 1 reply; 6+ messages in thread
From: Kyungmin Park @ 2008-02-15 8:56 UTC (permalink / raw)
To: joakim.tjernlund; +Cc: linux-mtd, linux-kernel
> > I got following messages.
> > INFO: task pdflush:56 blocked for more than 120 seconds.
> > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> >
> > What are the meanings?
> > Too mush running GC in JFFS2 or others?
> >
> > BR,
> > Kyungmin Park
>
> It is probably erasing lots of blocks and that takes a while, minutes
> some times. I once sent a patch to address this but the patch is racy
> w.r.t module unload. Look in the archive after patches from me.
>
You mean this one?
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index d1d4f27..b2e71c7 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -115,7 +115,7 @@ static inline void jffs2_refile_wbuf_blocks(struct jffs2_sb_
D1(printk(KERN_DEBUG "Removing eraseblock at 0x%08x from erasabl
list_del(this);
- if ((jiffies + (n++)) & 127) {
+ if ((jiffies + (n++)) & 127 && !list_empty(&c->erasable_list)) {
/* Most of the time, we just erase it immediately. Other
spend ages scanning it on mount, etc. */
D1(printk(KERN_DEBUG "...and adding to erase_pending_lis
It's already applied, but it's same.
BR,
Kyungmin Park
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Abnormal behavior with JFFS2 on latest kernel
2008-02-15 8:56 ` Abnormal behavior with JFFS2 on latest kernel Kyungmin Park
@ 2008-02-15 8:59 ` Joakim Tjernlund
2008-02-15 9:35 ` Kyungmin Park
0 siblings, 1 reply; 6+ messages in thread
From: Joakim Tjernlund @ 2008-02-15 8:59 UTC (permalink / raw)
To: kmpark; +Cc: linux-mtd, linux-kernel
On Fri, 2008-02-15 at 17:56 +0900, Kyungmin Park wrote:
> > > I got following messages.
> > > INFO: task pdflush:56 blocked for more than 120 seconds.
> > > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> > >
> > > What are the meanings?
> > > Too mush running GC in JFFS2 or others?
> > >
> > > BR,
> > > Kyungmin Park
> >
> > It is probably erasing lots of blocks and that takes a while, minutes
> > some times. I once sent a patch to address this but the patch is racy
> > w.r.t module unload. Look in the archive after patches from me.
> >
>
> You mean this one?
> diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
> index d1d4f27..b2e71c7 100644
> --- a/fs/jffs2/wbuf.c
> +++ b/fs/jffs2/wbuf.c
> @@ -115,7 +115,7 @@ static inline void jffs2_refile_wbuf_blocks(struct jffs2_sb_
>
> D1(printk(KERN_DEBUG "Removing eraseblock at 0x%08x from erasabl
> list_del(this);
> - if ((jiffies + (n++)) & 127) {
> + if ((jiffies + (n++)) & 127 && !list_empty(&c->erasable_list)) {
> /* Most of the time, we just erase it immediately. Other
> spend ages scanning it on mount, etc. */
> D1(printk(KERN_DEBUG "...and adding to erase_pending_lis
>
> It's already applied, but it's same.
Nope, the patch is probably named
"[JFFS2] Stop erasing blocks when rebooting."
Jocke
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Abnormal behavior with JFFS2 on latest kernel
[not found] ` <1203065647.23414.6.camel@sauron>
@ 2008-02-15 9:02 ` Kyungmin Park
2008-02-15 9:08 ` Artem Bityutskiy
0 siblings, 1 reply; 6+ messages in thread
From: Kyungmin Park @ 2008-02-15 9:02 UTC (permalink / raw)
To: dedekind; +Cc: 'linux-mtd', linux-kernel
> On Fri, 2008-02-15 at 16:12 +0900, Kyungmin Park wrote:
> > I got following messages.
> > INFO: task pdflush:56 blocked for more than 120 seconds.
> > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> >
> > What are the meanings?
> > Too mush running GC in JFFS2 or others?
>
> Hi Kyungmin,
>
> did not look at this, but off the top of my head this might be related
> to the latest VFS changes (write_begin()/write_end() instead of
> prepare_write()/commit_write()). Just a hint where you might try to
> look.
>
Then can I use the ubifs? I mean ubifs is already changed for latest VFS changes.
Now I just want to test new driver with latest kernel.
Thank you,
Kyungmin Park
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Abnormal behavior with JFFS2 on latest kernel
2008-02-15 9:02 ` Kyungmin Park
@ 2008-02-15 9:08 ` Artem Bityutskiy
0 siblings, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2008-02-15 9:08 UTC (permalink / raw)
To: kmpark; +Cc: 'linux-mtd', linux-kernel
On Fri, 2008-02-15 at 18:02 +0900, Kyungmin Park wrote:
> > On Fri, 2008-02-15 at 16:12 +0900, Kyungmin Park wrote:
> > > I got following messages.
> > > INFO: task pdflush:56 blocked for more than 120 seconds.
> > > "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> > >
> > > What are the meanings?
> > > Too mush running GC in JFFS2 or others?
> >
> > Hi Kyungmin,
> >
> > did not look at this, but off the top of my head this might be related
> > to the latest VFS changes (write_begin()/write_end() instead of
> > prepare_write()/commit_write()). Just a hint where you might try to
> > look.
> >
>
> Then can I use the ubifs? I mean ubifs is already changed for latest VFS changes.
> Now I just want to test new driver with latest kernel.
No, in opposite, we have not changed it yet. The old calls were not
removed from VFS and will be kept there for few releases. So we still
use them - this helps to use the same UBIFS sources for older kernels.
But later we'll switch to newer calls which are in fact much better for
UBIFS then the old ones.
But yes, you of course can use UBIFS.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Abnormal behavior with JFFS2 on latest kernel
2008-02-15 8:59 ` Joakim Tjernlund
@ 2008-02-15 9:35 ` Kyungmin Park
2008-02-15 9:49 ` Joakim Tjernlund
0 siblings, 1 reply; 6+ messages in thread
From: Kyungmin Park @ 2008-02-15 9:35 UTC (permalink / raw)
To: joakim.tjernlund; +Cc: linux-mtd, linux-kernel
>
> Nope, the patch is probably named
> "[JFFS2] Stop erasing blocks when rebooting."
>
No it's same; we have to find another one.
KB reclen write rewrite read reread
131072 4 3420 3683 15320 15341
131072 8INFO: task iozone:227 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
iozone D c021685c 0 227 222
[<c02164c0>] (schedule+0x0/0x41c) from [<c0216314>] (__down+0xa4/0xfc)
[<c0216270>] (__down+0x0/0xfc) from [<c021620c>] (__down_failed+0xc/0x20)
r8:c3815c70 r7:00000000 r6:c3815c30 r5:00000000 r4:00004078
[<c01182b8>] (jffs2_write_begin+0x0/0x3c0) from [<c00660cc>] (generic_file_buff)
[<c0065fbc>] (generic_file_buffered_write+0x0/0x65c) from [<c0066e58>] (__gener)
[<c0066908>] (__generic_file_aio_write_nolock+0x0/0x580) from [<c0066f00>] (gen)
[<c0066e88>] (generic_file_aio_write+0x0/0xf4) from [<c008870c>] (do_sync_write)
[<c008865c>] (do_sync_write+0x0/0xf4) from [<c0088810>] (vfs_write+0xc0/0xf8)
r8:c0020224 r7:c3d5df78 r6:41200000 r5:c3d9a220 r4:00002000
[<c0088750>] (vfs_write+0x0/0xf8) from [<c0088904>] (sys_write+0x48/0x74)
r7:00000004 r6:c3d9a220 r5:00000000 r4:04078000
[<c00888bc>] (sys_write+0x0/0x74) from [<c001fa20>] (ret_fast_syscall+0x0/0x2c)
r6:00000000 r5:00002000 r4:00004000
INFO: task jffs2_gcd_mtd4:257 blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
jffs2_gcd_mtd D c021685c 0 257 2
[<c02164c0>] (schedule+0x0/0x41c) from [<c0216da8>] (io_schedule+0x2c/0x48)
[<c0216d7c>] (io_schedule+0x0/0x48) from [<c0063b54>] (sync_page+0x50/0x5c)
r5:00000000 r4:c3f07cb0
[<c0063b04>] (sync_page+0x0/0x5c) from [<c02170f8>] (__wait_on_bit_lock+0x60/0x)
[<c0217098>] (__wait_on_bit_lock+0x0/0x94) from [<c006469c>] (__lock_page+0x88/)
[<c0064614>] (__lock_page+0x0/0x98) from [<c00654ac>] (read_cache_page_async+0x)
r5:00000000 r4:c0320ea0
[<c006536c>] (read_cache_page_async+0x0/0x1b8) from [<c0124fcc>] (jffs2_gc_fetc)
[<c0124fa0>] (jffs2_gc_fetch_page+0x0/0x64) from [<c0121758>] (jffs2_garbage_co)
r4:0407a000
[<c0120cac>] (jffs2_garbage_collect_live+0x0/0x11ac) from [<c01225a4>] (jffs2_g)
[<c0121e58>] (jffs2_garbage_collect_pass+0x0/0x844) from [<c0123cb0>] (jffs2_ga)
[<c0123b88>] (jffs2_garbage_collect_thread+0x0/0x168) from [<c003de0c>] (do_exi)
r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:00000000
Thank you,
Kyungmin Park
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Abnormal behavior with JFFS2 on latest kernel
2008-02-15 9:35 ` Kyungmin Park
@ 2008-02-15 9:49 ` Joakim Tjernlund
0 siblings, 0 replies; 6+ messages in thread
From: Joakim Tjernlund @ 2008-02-15 9:49 UTC (permalink / raw)
To: kmpark; +Cc: linux-mtd, linux-kernel
On Fri, 2008-02-15 at 18:35 +0900, Kyungmin Park wrote:
> >
> > Nope, the patch is probably named
> > "[JFFS2] Stop erasing blocks when rebooting."
> >
>
> No it's same; we have to find another one.
OK, it was worth a try. Sorry but I don't have
any more ideas.
Jocke
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-02-15 9:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <004601c86fa2$201a78d0$1fa9580a@swcenter.sec.samsung.co.kr>
[not found] ` <1203065237.5419.74.camel@gentoo-jocke.transmode.se>
2008-02-15 8:56 ` Abnormal behavior with JFFS2 on latest kernel Kyungmin Park
2008-02-15 8:59 ` Joakim Tjernlund
2008-02-15 9:35 ` Kyungmin Park
2008-02-15 9:49 ` Joakim Tjernlund
[not found] ` <1203065647.23414.6.camel@sauron>
2008-02-15 9:02 ` Kyungmin Park
2008-02-15 9:08 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).