]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Use Maximum Write Same Length to report discard size limit
authorMartin K. Petersen <martin.petersen@oracle.com>
Wed, 18 May 2011 02:13:23 +0000 (22:13 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 20 May 2011 00:46:01 +0000 (20:46 -0400)
commit312bf11e0f3a7f587a1dfc26f4c4b12079b49763
treef3e2d1a4430cbd9353b2959e3f00b4a1906ad467
parentc0da60552ff40bf0f2e34ba121068b41af723fe2
libata: Use Maximum Write Same Length to report discard size limit

Previously we used Maximum Unmap LBA Count in the Block Limits VPD to
signal the maximum number of sectors we could handle in a single Write
Same command.

Starting with SBC3r26 the Block Limits VPD has an explicit limit on the
number of blocks in a Write Same. This means we can stop abusing a field
related to the Unmap command and let our SAT use the proper value in the
VPD (Maximum Write Same Length).

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Cc: stable@kernel.org
drivers/ata/libata-scsi.c