All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: mkfs.btrfs vs fstrim on an SD Card (not SSD)
Date: Fri, 22 Aug 2014 09:04:45 -0400	[thread overview]
Message-ID: <yq1y4ugptea.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <F5912FA1-9B5B-4E22-A9A8-EB09461F2BD4@colorremedies.com> (Chris Murphy's message of "Thu, 21 Aug 2014 21:19:00 -0600")

>>>>> "Chris" == Chris Murphy <lists@colorremedies.com> writes:

Chris> Since the SD Card spec references a completely different command
Chris> than the ATA spec (TRIM), I don't think either one of these are
Chris> TRIM, even if functionally equivalent. Instead the SD Card
Chris> ERASE_* commands are probably being used,

Indeed. Discard is our generic block layer abstraction that gets
translated into whichever command is appropriate for the device in
question (ACS DSM TRIM, SBC WRITE SAME/UNMAP, etc.).

Chris> but I can't confirm this because writes to /dev/mmcblk0 aren't
Chris> showing up with:

Chris> echo scsi:scsi_dispatch_cmd_start >
Chris> /sys/kernel/debug/tracing/set_event echo 1 >
Chris> /sys/kernel/debug/tracing/tracing_on cat
Chris> /sys/kernel/debug/tracing/trace_pipe

MMC doesn't go through SCSI like ATA does. 

-- 
Martin K. Petersen	Oracle Linux Engineering

      reply	other threads:[~2014-08-22 13:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22  0:11 mkfs.btrfs vs fstrim on an SD Card (not SSD) Chris Murphy
2014-08-22  3:19 ` Chris Murphy
2014-08-22 13:04   ` Martin K. Petersen [this message]

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=yq1y4ugptea.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.