From: "Jörn Engel" <joern@logfs.org>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: Linux MTD mailing list <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH] Fix hanging close for /dev/mtd
Date: Wed, 13 Jun 2007 13:54:45 +0200 [thread overview]
Message-ID: <20070613115445.GA24502@lazybastard.org> (raw)
In-Reply-To: <1181735301.30670.277.camel@gentoo-jocke.transmode.se>
On Wed, 13 June 2007 13:48:21 +0200, Joakim Tjernlund wrote:
> On Wed, 2007-06-13 at 06:44 -0500, Josh Boyer wrote:
> > On Wed, 2007-06-13 at 11:53 +0200, Joakim Tjernlund wrote:
> > > Figured I should send this on its own.
> > >
> > > Stracing a process using /dev/mtd shows that
> > > it sometimes hangs for a long time when pdflush is erasing
> > > sectors. /dev/mtd* close method calls the mtd->sync method
> > > which can hang for a long time(minutes).
> > >
> > > Futher, the sync method "syncs" all flash chips. It should
> > > only sync the chips that a /dev/mtd* spans.
> > > Also, the mtdchar/mtdblock drivers does not need to
> > > call sync for readonly mappings.
> >
> > So were you going to submit a separate patch for those issues?
>
> Wow, someone is reading my mails :)
I read most of them.
In this case you made me wonder. What is the mtd->sync method supposed
to accomplish anyway? mtd->write is synchronous, mtd->erase de-facto
also is. So it cannot be a sync in the sense of "flush all dirty data
to flash and don't return before you're finished". Or can it?
Jörn
--
The strong give up and move away, while the weak give up and stay.
-- unknown
next prev parent reply other threads:[~2007-06-13 12:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 9:53 [PATCH] Fix hanging close for /dev/mtd Joakim Tjernlund
2007-06-13 11:44 ` Josh Boyer
2007-06-13 11:48 ` Joakim Tjernlund
2007-06-13 11:50 ` Joakim Tjernlund
2007-06-13 11:54 ` Jörn Engel [this message]
2007-06-13 13:29 ` Joakim Tjernlund
2007-06-13 14:29 ` Jörn Engel
2007-06-13 17:16 ` Joakim Tjernlund
2007-06-13 17:58 ` Jörn Engel
2007-06-13 20:25 ` Joakim Tjernlund
2007-06-13 12:31 ` Josh Boyer
2007-06-13 13:25 ` Joakim Tjernlund
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=20070613115445.GA24502@lazybastard.org \
--to=joern@logfs.org \
--cc=joakim.tjernlund@transmode.se \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox