]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dm-vdo: reset bi_ioprio to the default value when the bio is reset
authorSusan LeGendre-McGhee <slegendr@redhat.com>
Tue, 24 Sep 2024 16:11:43 +0000 (12:11 -0400)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 20 Nov 2024 10:38:04 +0000 (11:38 +0100)
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-vdo/vio.c

index b291578f726f5013fbdc41854c44da03a62434f9..e710f3c5a972dd763383f8a3819aca336caf1628 100644 (file)
@@ -202,6 +202,7 @@ int vio_reset_bio(struct vio *vio, char *data, bio_end_io_t callback,
        if (data == NULL)
                return VDO_SUCCESS;
 
+       bio->bi_ioprio = 0;
        bio->bi_io_vec = bio->bi_inline_vecs;
        bio->bi_max_vecs = vio->block_count + 1;
        len = VDO_BLOCK_SIZE * vio->block_count;