[SCSI] sd: WRITE SAME(16) / UNMAP support
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2009 17:00:40 +0000 (12:00 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Dec 2009 14:54:15 +0000 (08:54 -0600)
Implement a function for handling discard requests that sends either
WRITE SAME(16) or UNMAP(10) depending on parameters indicated by the
device in the block limits VPD.

Extract unmap constraints and report them to the block layer.

Based in part by a patch by Christoph Hellwig <hch@lst.de>.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/sd.c
drivers/scsi/sd.h

Simple merge
Simple merge