From: Adrian Hunter <adrian.hunter@nokia.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] mmc: add an ioctl for erasing
Date: Mon, 31 May 2010 12:14:53 +0300 [thread overview]
Message-ID: <4C037E0D.6030708@nokia.com> (raw)
In-Reply-To: <20100531084709.GA7784@infradead.org>
Christoph Hellwig wrote:
> On Mon, May 31, 2010 at 11:45:37AM +0300, Adrian Hunter wrote:
>> Sorry for the slow reply, I have been away.
>>
>> Connecting erase to discard was rejected for performance reasons in 2008.
>> Refer:
>>
>> http://thread.gmane.org/gmane.linux.file-systems/25378/focus=25606
>
> The discard implementation changed a lot since those days. Discard
> requests now have their own request size limitation which is separate
> form that for normal requests, and we also store the alignment
> requirement for them separately.
>
I tested extensively at that time with all changes necessary to allow
discards to produce MMC erases that work with maximum efficacy. There was
no performance benefit and operations like file deletion were much slower.
If connecting discard to MMC erase does not always improve performance, then
many people will have to change their mount options to include nodiscard.
Alternatively, if the connection is an optional configuration, then the
ioctl won't work all the time.
The erase ioctl needs to be separate from discard, which means it can be
made to support secure erase also.
next prev parent reply other threads:[~2010-05-31 9:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-21 13:47 [RFC][PATCH] mmc: add an ioctl for erasing Adrian Hunter
2010-05-21 14:07 ` Christoph Hellwig
2010-05-31 8:45 ` Adrian Hunter
2010-05-31 8:47 ` Christoph Hellwig
2010-05-31 9:14 ` Adrian Hunter [this message]
2010-05-31 11:14 ` Adrian Hunter
2010-05-26 1:01 ` George G. Davis
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=4C037E0D.6030708@nokia.com \
--to=adrian.hunter@nokia.com \
--cc=akpm@linux-foundation.org \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@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