lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190821061156.3127-2-chaitanya.kulkarni@wdc.com>
Date:   Tue, 20 Aug 2019 23:11:54 -0700
From:   Chaitanya Kulkarni <chaitanya.kulkarni@....com>
To:     linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Cc:     axboe@...nel.dk, Chaitanya Kulkarni <chaitanya.kulkarni@....com>
Subject: [PATCH V2 1/3] block: set ioprio for zone-reset bio

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

Reviewed-by: Martin K. Petersen <martin.petersen@...cle.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@....com>
---
 block/blk-zoned.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 4bc5f260248a..741759b5e302 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -214,6 +214,7 @@ static int __blkdev_reset_all_zones(struct block_device *bdev, gfp_t gfp_mask)
 	/* across the zones operations, don't need any sectors */
 	bio_set_dev(bio, bdev);
 	bio_set_op_attrs(bio, REQ_OP_ZONE_RESET_ALL, 0);
+	bio_set_prio(bio, get_current_ioprio());
 
 	ret = submit_bio_wait(bio);
 	bio_put(bio);
@@ -290,6 +291,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;
 
-- 
2.17.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ