From: Pierre Ossman Subject: [PATCH 0/2] MMC discard support (was [PATCH 0/7] Discard requests, v2) Date: Sat, 16 Aug 2008 19:08:58 +0200 Message-ID: <20080816190858.4d150ea1@mjolnir.drzeus.cx> References: <1218299181.26926.88.camel@pmac.infradead.org> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=PGP-SHA1; boundary="=_freyr.drzeus.cx-20254-1218906546-0001-2" Cc: David Woodhouse , Jens Axboe To: linux-fsdevel@vger.kernel.org Return-path: Received: from server.drzeus.cx ([85.8.24.28]:42877 "EHLO smtp.drzeus.cx" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750838AbYHPRJI (ORCPT ); Sat, 16 Aug 2008 13:09:08 -0400 In-Reply-To: <1218299181.26926.88.camel@pmac.infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_freyr.drzeus.cx-20254-1218906546-0001-2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I've cooked up some patches that maps David's new discard requests to erase operations on MMC and SD cards. I'm not entirely sure these are something to keep though as I've been unable to see any performance increase in keeping blocks erased. Do we have any other reason to keep it? During development and test I noticed one issue though; the discard requests are chopped up into smaller pieces. As the erase commands have a granularity, sometimes this can mean that parts of the flash are missed because the discard request isn't split in alignment with the erase boundaries. For this reason, I propose that discard requests do not respect the regular queue restrictions. Those are generally for expressing limitations in the devices' DMA engines. Since the discard request carries no data, the DMA engine will never get involved. --=20 -- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption. --=_freyr.drzeus.cx-20254-1218906546-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkinCbAACgkQ7b8eESbyJLg8MwCeLt2cXxNF3H+H9gHhAt1kGX7U gA8AnjVWH5PptfIv9S95agjTe/B3rSwT =zZ9r -----END PGP SIGNATURE----- --=_freyr.drzeus.cx-20254-1218906546-0001-2--