Skip to content

Commit bd7e677

Browse files
slegendrMikulas Patocka
authored andcommitted
dm-vdo: reset bi_ioprio to the default value when the bio is reset
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>
1 parent 87d76d2 commit bd7e677

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/md/dm-vdo/vio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ int vio_reset_bio(struct vio *vio, char *data, bio_end_io_t callback,
202202
if (data == NULL)
203203
return VDO_SUCCESS;
204204

205+
bio->bi_ioprio = 0;
205206
bio->bi_io_vec = bio->bi_inline_vecs;
206207
bio->bi_max_vecs = vio->block_count + 1;
207208
len = VDO_BLOCK_SIZE * vio->block_count;

0 commit comments

Comments
 (0)