Skip to content

Commit

Permalink
dm-vdo: reset bi_ioprio to the default value when the bio is reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Susan LeGendre-McGhee authored and Mikulas Patocka committed Nov 20, 2024
1 parent 87d76d2 commit bd7e677
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-vdo/vio.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit bd7e677

Please sign in to comment.