All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marios Andreopoulos <opensource@andmarios.com>
To: linux-ide@vger.kernel.org
Subject: [PATCH] libata: disable queued TRIM for Crucial M500 mSATA SSDs
Date: Mon, 03 Mar 2014 18:19:59 +0200	[thread overview]
Message-ID: <9306023.Q3rnH2c0bQ@miles> (raw)

From: Marios Andreopoulos <opensource@andmarios.com>

Queued TRIM commands cause problems and silent file system corruption
on Crucial M500 SSDs. This patch disables them for the mSATA model of
the drive.

Signed-off-by: Marios Andreopoulos <opensource@andmarios.com>
---
More information can be found on this bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=71371

 drivers/ata/libata-core.c |    1 +
 1 file changed, 1 insertion(+)

diff -pruN a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
--- a/drivers/ata/libata-core.c	2014-03-02 02:04:02.000000000 +0200
+++ b/drivers/ata/libata-core.c	2014-03-03 17:49:14.867332615 +0200
@@ -4225,6 +4225,7 @@ static const struct ata_blacklist_entry
 	/* devices that don't properly handle queued TRIM commands */
 	{ "Micron_M500*",		NULL,	ATA_HORKAGE_NO_NCQ_TRIM, },
 	{ "Crucial_CT???M500SSD1",	NULL,	ATA_HORKAGE_NO_NCQ_TRIM, },
+	{ "Crucial_CT???M500SSD3",	NULL,	ATA_HORKAGE_NO_NCQ_TRIM, },
 
 	/*
 	 * Some WD SATA-I drives spin up and down erratically when the link


             reply	other threads:[~2014-03-03 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 16:19 Marios Andreopoulos [this message]
2014-03-03 22:51 ` [PATCH] libata: disable queued TRIM for Crucial M500 mSATA SSDs Tejun Heo

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=9306023.Q3rnH2c0bQ@miles \
    --to=opensource@andmarios.com \
    --cc=linux-ide@vger.kernel.org \
    /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.