sd: implement unmapping Write Zeroes
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:12 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commite4b878371b85ddcd3e00eb68fa45e61793c37af0
tree973d561198d920205e9ab694c7e6805cc95ea0aa
parent34045129b128fb3c0237b6af7c5a84b1ca9c0bf5
sd: implement unmapping Write Zeroes

Try to use a write same with unmap bit variant if the device supports it
and the caller allows for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/sd.c