From: marcus hall <marcus@tuells.org>
To: linux-kernel@vger.kernel.org
Subject: Re: mmap returns incorrect data
Date: Fri, 30 Apr 2004 16:58:44 -0600 [thread overview]
Message-ID: <20040430225844.GA13015@bastille.tuells.org> (raw)
In-Reply-To: <20040429231243.GA8216@bastille.tuells.org>
On Thu Apr 29 2004 - 18:48:22 EST, Russell King wrote:
>You _really_ don't want to use ext3 on CF unless you want to wear the
>flash quickly. Just because a filesystem has journaling does _not_
>mean that its suitable for flash (in fact, it may be far worse for
>flash than its non-journaled counterpart, as in this case.)
I was concerned about that in the beginning, and was told that CF devices
perform wear-leveling internally. In fact, we have had units in the field
for a couple of years without failure, so my objections carried little
weight. In practice, the filesystem isn't often written. Since the jffs2
filesystem seems to be intertwined with the mtd drivers, there don't seem
to be any other good failure-tolerant solutions. But, that isn't the
point for now..
>This is an IDE driver bug - it performs PIO but does not ensure that the
>individual pages are properly flushed to RAM before telling the kernel
>that the IO is complete. (If someone wants to disagree, look at how
>rd.c does flush_dcache_page, and see previous discussions on lkml
>concerning this.)
Yes, this was in fact where the problem was. In the 2.5.59 kernel, in
mm/filemap.c there were still two calls to flush_page_to_ram(), but in
include/asm-arm/proc-armv/cache.h this was defined to be a nop. I
replaced the flush_page_to_ram() calls with flush_dcache_page() calls
and everything started working properly.
In later versions, the flush_page_to_ram() calls have been removed from
filemap.c, and I do not see any replacement of the functionality (at least
nothing that seems clear to me!)
I would like to eventually move forward to a 2.6 kernel, so I am interested
in how this is addressed there.
I also didn't seem to find (or recognize) the earlier discussion, so perhaps
it is covered there..
Anyhow, thanks for the help. Things are rolling again!
Marcus Hall
marcus@tuells.org
prev parent reply other threads:[~2004-04-30 22:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-29 23:12 marcus hall
2004-04-29 23:47 ` Russell King
2004-05-05 15:47 ` Paulo Marques
2004-04-30 22:58 ` marcus hall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040430225844.GA13015@bastille.tuells.org \
--to=marcus@tuells.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®