Skip to content

Commit 8e42d23

Browse files
ChaitanayaKulkarniaxboe
authored andcommitted
block: mark zone-mgmt bios with REQ_SYNC
In the current implementation, final zone-mgmt request is issued with submit_bio_wait() which marks the bio REQ_SYNC. This is needed since immediate action is expected for zone-mgmt requests as these are blocking operations. This also bypasses the scheduler in the blk_mq_make_request() and dispatches the request directly into the hw ctx. This patch marks all the chained bios REQ_SYNC so that we can have above-mentioned behavior for non-final bios also. Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Bob Liu <bob.liu@oracle.com> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 105663f commit 8e42d23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-zoned.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op,
198198
break;
199199
}
200200

201-
bio->bi_opf = op;
201+
bio->bi_opf = op | REQ_SYNC;
202202
bio->bi_iter.bi_sector = sector;
203203
sector += zone_sectors;
204204

0 commit comments

Comments
 (0)