]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:31:45 +0000 (09:31 +0900)
commit0d6a1cd7121da74a36846dfa1701c37ccee8faac
treec22649af02c44dccebc46a2edf2ea9c21aba9cca
parentd3b2cb8d5114ff591925a40e9d33e4cf956eb1f4
libata: Use Maximum Write Same Length to report discard size limit

commit 5f4e206666f834340b69ddb43f86de3851c8675a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/libata-scsi.c