commit | 579e8f3c7b2ecf7db91398d942d76457a3ddba21 | [log] [tgz] |
---|---|---|
author | Martin K. Petersen <martin.petersen@oracle.com> | Tue Sep 18 12:19:28 2012 -0400 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Sep 20 14:31:49 2012 +0200 |
tree | f41d7d469cb427550656f1d1d2c3b5215a9ea0aa | |
parent | 4363ac7c13a9a4b763c6e8d9fdbfc2468f3b8ca4 [diff] |
block: Make blkdev_issue_zeroout use WRITE SAME If the device supports WRITE SAME, use that to optimize zeroing of blocks. If the device does not support WRITE SAME or if the operation fails, fall back to writing zeroes the old-fashioned way. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Acked-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>