Thread (4 messages) 4 messages, 1 author, 2019-08-21
STALE2509d REVIEWED: 2 (2M)
Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH V2 2/3] block: set ioprio for flush bio

From: Chaitanya Kulkarni <hidden>
Date: 2019-08-21 06:12:13
Also in: lkml
Subsystem: block layer, the rest · Maintainers: Jens Axboe, Linus Torvalds

Set the current process's iopriority for flush bio.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Chaitanya Kulkarni <redacted>
---
 block/blk-flush.c | 1 +
 1 file changed, 1 insertion(+)
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);
 
-- 
2.17.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help