linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@nokia.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Adrian Hunter <adrian.hunter@nokia.com>,
	Jens Axboe <axboe@kernel.dk>,
	Kyungmin Park <kmpark@infradead.org>,
	Madhusudhan Chikkature <madhu.cr@ti.com>,
	linux-mmc Mailing List <linux-mmc@vger.kernel.org>,
	Christoph Hellwig <hch@lst.de>,
	linux-kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH V3 0/5] Add MMC erase and secure erase V3
Date: Thu, 24 Jun 2010 11:43:51 +0300	[thread overview]
Message-ID: <20100624084351.25444.30143.sendpatchset@ahunter-work.research.nokia.com> (raw)

Hi

Add ability to do MMC erase and secure erase operations from userspace,
using the BLKDISCARD ioctl and a newly created BLKSECDISCARD ioctl.

This is version 3 of these patches.

Changes from V2

- move the addition of BLKSECDISCARD to a separate patch and implement it
using I/O requests
- move the MMC support of secure discard to a separate patch and support
the secure discard I/O request

Changes from V1

- use discard I/O requests instead of implementing BLKDISCARD in mmc_block
- do not validate erase size for MMC erases, instead round to erase size
- rename MMC max_erase to pref_erase and expose it through sysfs as
preferred_erase_size


Adrian Hunter (5):
      mmc: Add erase, secure erase, trim and secure trim operations
      mmc_block: Add discard support
      omap_hsmmc: Add erase capability
      block: Add secure discard
      mmc_block: Add support for secure discard

 block/blk-core.c              |    6 +-
 block/blk-lib.c               |    6 +
 block/compat_ioctl.c          |    1 +
 block/elevator.c              |    4 +
 block/ioctl.c                 |   15 ++-
 drivers/mmc/card/block.c      |   82 ++++++++++-
 drivers/mmc/card/queue.c      |   19 ++-
 drivers/mmc/core/core.c       |  346 +++++++++++++++++++++++++++++++++++++++++
 drivers/mmc/core/core.h       |    2 +
 drivers/mmc/core/mmc.c        |   47 ++++++-
 drivers/mmc/core/sd.c         |   82 ++++++++++
 drivers/mmc/core/sd_ops.c     |   48 ++++++
 drivers/mmc/core/sd_ops.h     |    1 +
 drivers/mmc/host/omap_hsmmc.c |   13 ++-
 include/linux/bio.h           |    7 +-
 include/linux/blkdev.h        |   10 +-
 include/linux/fs.h            |    2 +
 include/linux/mmc/card.h      |   19 +++
 include/linux/mmc/core.h      |   19 +++
 include/linux/mmc/host.h      |    1 +
 include/linux/mmc/mmc.h       |   24 ++-
 include/linux/mmc/sd.h        |    5 +
 kernel/trace/blktrace.c       |    8 +
 23 files changed, 746 insertions(+), 21 deletions(-)

 
Regards
Adrian


             reply	other threads:[~2010-06-24  8:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24  8:43 Adrian Hunter [this message]
2010-06-24  8:44 ` [PATCH V3 1/5] mmc: Add erase, secure erase, trim and secure trim operations Adrian Hunter
2010-06-30 22:21   ` Andrew Morton
2010-07-01 10:49     ` Adrian Hunter
2010-06-24  8:44 ` [PATCH V3 2/5] mmc_block: Add discard support Adrian Hunter
2010-06-24  8:44 ` [PATCH V3 3/5] omap_hsmmc: Add erase capability Adrian Hunter
2010-06-24  8:44 ` [PATCH V3 4/5] block: Add secure discard Adrian Hunter
2010-06-30 22:09   ` Andrew Morton
2010-07-01 10:18     ` Adrian Hunter
2010-06-24  8:44 ` [PATCH V3 5/5] mmc_block: Add support for " Adrian Hunter

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=20100624084351.25444.30143.sendpatchset@ahunter-work.research.nokia.com \
    --to=adrian.hunter@nokia.com \
    --cc=akpm@linux-foundation.org \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=kmpark@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).