aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2021-03-10 18:09:19 +0900
committerJens Axboe <axboe@kernel.dk>2021-03-10 07:45:47 -0700
commitfaa44c69daf9ccbd5b8a1aee13e0e0d037c0be17 (patch)
treebb4686cb765199c01f0e938ffd5d8d5cb79f0fbc /block
parentumem: fix error return code in mm_pci_probe() (diff)
downloadlinux-dev-faa44c69daf9ccbd5b8a1aee13e0e0d037c0be17.tar.xz
linux-dev-faa44c69daf9ccbd5b8a1aee13e0e0d037c0be17.zip
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.c2
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;
}