Message ID | 20190710040224.12342-2-chaitanya.kulkarni@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: set ioprio value | expand |
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 --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;
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(+)