Skip to contentSkip to conversation

dm-vdo: reset bi_ioprio to the default value when the bio is reset

PATCH New Matthew Sakai 1 participant 1 message Nov 5, 2024

Subsystems (2)
lore
Share & tools
lore

Matthew Sakai

author maintainer
#0 lore raw

PATCH 1/1 dm-vdo: reset bi_ioprio to the default value when the bio is reset

From: Susan LeGendre-McGhee <[email protected]>

---
 drivers/md/dm-vdo/vio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/md/dm-vdo/vio.c +1 -0
index b291578f726f..e710f3c5a972 100644
@@ -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;
Signature · 1 line
2.45.2