Message ID | 20240626100700.3629-3-anuj20.g@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2,01/10] block: change rq_integrity_vec to respect the iterator | expand |
Jens, can you pick this one up for 6.11? We can't really trigger it as-is, but it would be good to get it out of the way and avoid someone else triggering the issue (e.g. Mikulas with his dm-integrity work).
On 6/28/24 12:04 AM, Christoph Hellwig wrote: > Jens, can you pick this one up for 6.11? We can't really trigger > it as-is, but it would be good to get it out of the way and avoid > someone else triggering the issue (e.g. Mikulas with his dm-integrity > work). Yeah done - worth noting that patch 1 in this series is already in my tree as well.
diff --git a/block/bio-integrity.c b/block/bio-integrity.c index dab70370b2c7..af79d9fbf413 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -276,6 +276,7 @@ static int bio_integrity_copy_user(struct bio *bio, struct bio_vec *bvec, bip->bip_flags |= BIP_INTEGRITY_USER | BIP_COPY_USER; bip->bip_iter.bi_sector = seed; + bip->bip_vcnt = nr_vecs; return 0; free_bip: bio_integrity_free(bio); @@ -297,6 +298,7 @@ static int bio_integrity_init_user(struct bio *bio, struct bio_vec *bvec, bip->bip_flags |= BIP_INTEGRITY_USER; bip->bip_iter.bi_sector = seed; bip->bip_iter.bi_size = len; + bip->bip_vcnt = nr_vecs; return 0; }