diff mbox series

[1/3] block: set ioprio for zone-reset bio

Message ID 20190710040224.12342-2-chaitanya.kulkarni@wdc.com (mailing list archive)
State New, archived
Headers show
Series block: set ioprio value | expand

Commit Message

Chaitanya Kulkarni July 10, 2019, 4:02 a.m. UTC
Set the current process's iopriority to the bio for REQ_OP_ZONE_RESET.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
 block/blk-zoned.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Martin K. Petersen July 12, 2019, 2:07 a.m. UTC | #1
Chaitanya,

> Set the current process's iopriority to the bio for REQ_OP_ZONE_RESET.

Looks fine.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
diff mbox series

Patch

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index ae7e91bd0618..0bd7981e9535 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -249,6 +249,7 @@  int blkdev_reset_zones(struct block_device *bdev,
 		bio->bi_iter.bi_sector = sector;
 		bio_set_dev(bio, bdev);
 		bio_set_op_attrs(bio, REQ_OP_ZONE_RESET, 0);
+		bio_set_prio(bio, get_current_ioprio());
 
 		sector += zone_sectors;