Skip to contentSkip to conversation

block: copy ioprio in __bio_clone_fast()

PATCH Superseded Hannes Reinecke 2 participants 2 messages Feb 26, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: copy ioprio in __bio_clone_fast()

We need to copy the io priority, too; otherwise the clone will run with a different priority than the original one.

Fixes 43b62ce3ff0a ("block: move bio io prio to a new field")
---
 block/bio.c          |   1 +
 drivers/vhost/npiv.c | 379 +++++----------------------------------------------
 2 files changed, 37 insertions(+), 343 deletions(-)
block/bio.c +1 -0
index e1708db48258..e079911c640f 100644
@@ -605,6 +605,7 @@ void __bio_clone_fast(struct bio *bio, struct bio *bio_src)
 	bio->bi_write_hint = bio_src->bi_write_hint;
 	bio->bi_iter = bio_src->bi_iter;
 	bio->bi_io_vec = bio_src->bi_io_vec;
+	bio->bi_ioprio = bio_src->bi_ioprio;
 
 	bio_clone_blkcg_association(bio, bio_src);
 }
drivers/vhost/npiv.c +36 -343

487 lines not on this page · raw message

Signature · 1 line
2.12.3
#1 lore raw

drivers/vhost/npiv.c

Quoted 27 lines · Hannes Reinecke

We need to copy the io priority, too; otherwise the clone will run with a different priority than the original one.

Fixes 43b62ce3ff0a ("block: move bio io prio to a new field")
---
 block/bio.c          |   1 +
 drivers/vhost/npiv.c | 379 +++++----------------------------------------------
 2 files changed, 37 insertions(+), 343 deletions(-)
block/bio.c +1 -0
index e1708db48258..e079911c640f 100644
@@ -605,6 +605,7 @@ void __bio_clone_fast(struct bio *bio, struct bio *bio_src)
 	bio->bi_write_hint = bio_src->bi_write_hint;
 	bio->bi_iter = bio_src->bi_iter;
 	bio->bi_io_vec = bio_src->bi_io_vec;
+	bio->bi_ioprio = bio_src->bi_ioprio;
 
 	bio_clone_blkcg_association(bio, bio_src);
 }
drivers/vhost/npiv.c +0 -0
index 20e2a66e332d..3527996aab3f 100644
@@ -13,7 +13,7 @@

Gnaa.
Please ignore.

Will be sending the correct patch.

Signature · 5 lines
Dr. Hannes Reinecke		               zSeries & Storage
[email protected]			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)