libata: Allow NCQ TRIM to be enabled or disabled with a module parameter
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 May 2015 01:54:18 +0000 (21:54 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 5 May 2015 13:30:18 +0000 (09:30 -0400)
commitd7b16e4f6283c6ec52b411aa6deb02ca4d030d20
tree2d4e778ad5f332eb067f04edc77bc2af3c15ea24
parent3b6eefc1c9381f4222de755c131c0718e9faac2a
libata: Allow NCQ TRIM to be enabled or disabled with a module parameter

We have started seeing SSD firmware updates introduce support for queued
TRIM. Sadly, in most cases this support is completely untested and can
lead to either errors or data corruption.

Add two libata force flags that can be used to either enable or disable
queued TRIM support.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/kernel-parameters.txt
drivers/ata/libata-core.c