* endless calls to jffs_garbage_collect_trigger
@ 2001-09-27 14:15 Clive Davies
2001-09-27 14:20 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Clive Davies @ 2001-09-27 14:15 UTC (permalink / raw)
To: 'linux-mtd@lists.infradead.org'
In my system I'm using kernel 2.4.9-ac10-rmk2 on an ARM based system,
booting from a jffs flash root filesystem using a hacked compaq bootldr.
During the boot sequence, after freeing the Init memory the kernel gets
stuck in a call to kernel_thread - kupdate - sync_old_buffers - sync_supers
It seems that sync_supers scans down the list of sb structures looking for
those with a non-zero s_dirt field. s_dirt is set for the jffs filesystem so
sync_supers calls jffs_garbage_collect_trigger and then goes back to the
start of the sb list and searches for sb stucts with their s_dirt field set
again. The problem is that the s_dirt field for the jffs sb never seems to
be cleared so it get stuck in an endless loop of calls to
jffs_garbage_collect_trigger.
I've got around the problem by forcing jffs_garbage_collect_trigger to clear
s_dirt, but as I know very little about jffs I suspect that this my not be
the best/correct solution.
Can anyone tell me how I ought to fix this?
TIA
Clive
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: endless calls to jffs_garbage_collect_trigger
2001-09-27 14:15 endless calls to jffs_garbage_collect_trigger Clive Davies
@ 2001-09-27 14:20 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-09-27 14:20 UTC (permalink / raw)
To: Clive Davies; +Cc: 'linux-mtd@lists.infradead.org'
cdavies@altera.com said:
> I've got around the problem by forcing jffs_garbage_collect_trigger
> to clear s_dirt, but as I know very little about jffs I suspect that
> this my not be the best/correct solution.
That's the solution I committed to CVS a few days ago. I've sent the latest
code, including that patch, to Linus and Alan, and hopefully each will
include it in their next release.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-27 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-27 14:15 endless calls to jffs_garbage_collect_trigger Clive Davies
2001-09-27 14:20 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox