[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101119140203.GC10039@thunk.org>
Date: Fri, 19 Nov 2010 09:02:03 -0500
From: Ted Ts'o <tytso@....edu>
To: Mark Lord <kernel@...savvy.com>
Cc: Steven Whitehouse <swhiteho@...hat.com>,
Lukas Czerner <lczerner@...hat.com>,
James Bottomley <James.Bottomley@...e.de>,
Christoph Hellwig <hch@...radead.org>,
Matthew Wilcox <matthew@....cx>,
Josef Bacik <josef@...hat.com>, linux-ext4@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
sandeen@...hat.com
Subject: Re: [PATCH 1/2] fs: Do not dispatch FITRIM through separate
super_operation
On Fri, Nov 19, 2010 at 08:53:25AM -0500, Mark Lord wrote:
> There is a very good reason why faster implementations may be *difficult*
> (if not impossible) in many cases: DETERMINISTIC trim. This requires
> that the drive guarantee the block ranges will return a constant known
> value after TRIM. Which means they MUST write to flash during the trim.
> And any WRITE to flash means a potential ERASE operation may be needed.
Deterministic TRIM is an option. It doesn't have to be implemented.
And as you even pointed out, there are ways of doing this
intelligently. Whether "intelligently" and "drive firmware authors"
are two phrases that should be used in the same sentence is a concern
that I will grant, but that's why mount -o discard is not the default.
> Non-deterministic TRIM should also try to ensure that the original data
> is no longer there (for security reasons), so it may have the same issues.
Says who? We've deleted files on hard drives for a long time without
scrubbing data blocks. Why should a non-deterministic trim be any
different. If the goal is a better performing SSD, and not security,
then non-deterministic trim should definitely _not_ ensure that the
original data is no longer accessible.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists