From: Estelle HAMMACHE <estelle.hammache@st.com>
To: "Artem B. Bityuckiy" <dedekind@yandex.ru>
Cc: linux-mtd@lists.infradead.org
Subject: Re: JFFS2 & NAND failure
Date: Mon, 04 Apr 2005 15:58:45 +0200 [thread overview]
Message-ID: <42514815.AD64923B@st.com> (raw)
In-Reply-To: 425139E8.5000508@yandex.ru
Hi Artem,
I ran the deadlock test with your patch and did not
observe any deadlock nor any other problem.
> - ret = jffs2_flash_read(c, ofs, readlen, &retlen, ebuf);
> + if (!jffs2_is_writebuffered(c) || !jffs2_cleanmarker_oob(c))
> + ret = c->mtd->read(c->mtd, ofs, readlen, &retlen, ebuf);
> + else
> + ret = c->mtd->read_ecc(c->mtd, ofs, readlen, &retlen, ebuf, NULL, c->oobinfo);
> +
> if (ret) {
> printk(KERN_WARNING "Read of newly-erased block at 0x%08x failed: %d. Putting on bad_list\n", ofs, ret);
> goto bad;
However I don't use MTD drivers, and I have no ECC
implementation so far, so I don't know whether
read_ecc could return an error (maybe EBADMSG) when
it finds that the page and OOB are all FF.
Maybe just calling mtd->read unconditionally is
good here ?
bye
Estelle
next prev parent reply other threads:[~2005-04-04 13:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 17:15 JFFS2 & NAND failure Estelle HAMMACHE
2004-11-18 16:27 ` David Woodhouse
2004-11-18 17:54 ` Estelle HAMMACHE
2004-11-19 13:17 ` David Woodhouse
2004-11-19 16:22 ` Estelle HAMMACHE
2004-11-20 18:57 ` David Woodhouse
2004-11-20 19:19 ` David Woodhouse
2004-11-20 22:13 ` David Woodhouse
2004-12-09 14:57 ` David Woodhouse
2004-12-09 17:06 ` Estelle HAMMACHE
2004-12-15 12:33 ` Estelle HAMMACHE
2005-02-02 16:21 ` Estelle HAMMACHE
2005-04-04 12:58 ` Artem B. Bityuckiy
2005-04-04 13:58 ` Estelle HAMMACHE [this message]
2005-04-04 14:47 ` Artem B. Bityuckiy
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=42514815.AD64923B@st.com \
--to=estelle.hammache@st.com \
--cc=dedekind@yandex.ru \
--cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.