[SCSI] sd: Update thin provisioning support
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Sep 2010 05:22:07 +0000 (01:22 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 17 Sep 2010 17:07:55 +0000 (13:07 -0400)
Add support for the Thin Provisioning VPD page and use the TPU and TPWS
bits to switch between UNMAP and WRITE SAME(16) for discards.  If no TP
VPD page is present we fall back to old scheme where the max descriptor
count combined with the max lba count are used trigger UNMAP.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found