Revert "block: make sure ->nr_integrity_segments is cloned in blk_rq_prep_clone"

This reverts commit 2afa5ea7c4 which is
commit fc0e982b8a3a169b1c654d9a1aa45bf292943ef2 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: I61cd1477ed874611b0d9277be0f67557a41364e4
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2025-05-21 10:05:50 +00:00
parent c03fd6f483
commit 0051f90803

View File

@@ -3330,7 +3330,6 @@ int blk_rq_prep_clone(struct request *rq, struct request *rq_src,
rq->special_vec = rq_src->special_vec;
}
rq->nr_phys_segments = rq_src->nr_phys_segments;
rq->nr_integrity_segments = rq_src->nr_integrity_segments;
if (rq->bio && blk_crypto_rq_bio_prep(rq, rq->bio, gfp_mask) < 0)
goto free_and_out;