]> git.baikalelectronics.ru Git - kernel.git/commit
target: remove an incorrect unmap zeroes data deduction
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:32 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:58 +0000 (19:49 -0600)
commitebc21b3045b34e3325a8c1ba27bca9c950ad546f
tree237900d63a1993a0b16b8fdf7b6313351f9392a2
parent4c94a2597cf6e0958a875f9d7f74b6fb08862a16
target: remove an incorrect unmap zeroes data deduction

For block devices, the SCSI target drivers implements UNMAP as calls to
blkdev_issue_discard, which does not guarantee zeroing just because
Write Zeroes is supported.

Note that this does not affect the file backed path which uses
fallocate to punch holes.

Fixes: ed4fe0e4eb07 ("target/iblock: Convert WRITE_SAME to blkdev_issue_zeroout")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/target/target_core_device.c