VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
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 parent: eeb05595d22c19c8f814ff893dcf88ec277a2365
Commit Summary:
block: Fix REQ_OP_ZONE_RESET_ALL handling
Diffstat:
1 file changed, 1 insertion, 1 deletion
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;
 		}