diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2021-03-10 18:09:19 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-10 07:45:47 -0700 |
commit | faa44c69daf9ccbd5b8a1aee13e0e0d037c0be17 (patch) | |
tree | bb4686cb765199c01f0e938ffd5d8d5cb79f0fbc /block | |
parent | eeb05595d22c19c8f814ff893dcf88ec277a2365 (diff) |
block: Fix REQ_OP_ZONE_RESET_ALL handling
Similarly to a single zone reset operation (REQ_OP_ZONE_RESET), execute
REQ_OP_ZONE_RESET_ALL operations with REQ_SYNC set.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-zoned.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 833978c02e60..8b9f3fc5a690 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -240,7 +240,7 @@ int blkdev_zone_mgmt(struct block_device *bdev, enum req_opf op, */ if (op == REQ_OP_ZONE_RESET && blkdev_allow_reset_all_zones(bdev, sector, nr_sectors)) { - bio->bi_opf = REQ_OP_ZONE_RESET_ALL; + bio->bi_opf = REQ_OP_ZONE_RESET_ALL | REQ_SYNC; break; } |