Message ID | 20190821061156.3127-3-chaitanya.kulkarni@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: set ioprio value | expand |
diff --git a/block/blk-flush.c b/block/blk-flush.c index aedd9320e605..642a01b72a8b 100644 --- a/block/blk-flush.c +++ b/block/blk-flush.c @@ -445,6 +445,7 @@ int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask, bio = bio_alloc(gfp_mask, 0); bio_set_dev(bio, bdev); bio->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH; + bio_set_prio(bio, get_current_ioprio()); ret = submit_bio_wait(bio);