]> 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)
commitf0975103b1facc2fb4eeacb0f566ee89c52d51ed
tree973d561198d920205e9ab694c7e6805cc95ea0aa
parente1241b49f758264b6a76353754147ee4a0cece1a
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