]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita29465b7bd61c10fe41b707b1a3e250a83ec5715
tree973d561198d920205e9ab694c7e6805cc95ea0aa
parent84b14b81e4ad83ee47bdde9cb735c1abe718ffee
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