Skip to content

MMC discard support (was [PATCH 0/7] Discard requests, v2)

Pierre Ossman linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mmc_block: factor out the mmc request handlingdrivers/mmc/card/block.c+174 -1540 replies
2/2mmc_block: erase discarded blocksdrivers/mmc/card/block.c drivers/mmc/card/queue.c drivers/mmc/core/mmc.c +3 more+154 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] MMC discard support (was [PATCH 0/7] Discard requests, v2)

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.

Signature · 9 lines
     -- 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.