diff options
author | Christoph Hellwig <hch@lst.de> | 2022-02-09 09:28:23 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-23 03:11:08 +0100 |
commit | a34592ff6b78e84e11b19183b60cd240737f76f9 (patch) | |
tree | 1e1819e1ade7df3011087d1f647ca8120f1df5ae /drivers/block/drbd/drbd_worker.c | |
parent | scsi: cxlflash: Query write_zeroes limit for zeroing (diff) | |
download | linux-a34592ff6b78e84e11b19183b60cd240737f76f9.tar.xz linux-a34592ff6b78e84e11b19183b60cd240737f76f9.zip |
scsi: drbd: Remove WRITE_SAME support
REQ_OP_WRITE_SAME was only ever submitted by the legacy Linux zeroing code,
which has switched to use REQ_OP_WRITE_ZEROES long ago.
Link: https://lore.kernel.org/r/20220209082828.2629273-3-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index 64563bfdf0da..934bfb5d98d0 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c @@ -329,11 +329,6 @@ void drbd_csum_bio(struct crypto_shash *tfm, struct bio *bio, void *digest) src = kmap_atomic(bvec.bv_page); crypto_shash_update(desc, src + bvec.bv_offset, bvec.bv_len); kunmap_atomic(src); - - /* REQ_OP_WRITE_SAME has only one segment, - * checksum the payload only once. */ - if (bio_op(bio) == REQ_OP_WRITE_SAME) - break; } crypto_shash_final(desc, digest); shash_desc_zero(desc); |