From: Shin'ichiro Kawasaki Date: Thu, 8 Jun 2023 07:06:03 +0000 (+0900) Subject: zbd: do not reset extra zones in open conditions X-Git-Tag: fio-3.36~85 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8ac768899d63baca5259b21823b76f42aaaa509b;p=fio.git zbd: do not reset extra zones in open conditions The commit 954217b90191 ("zbd: Initialize open zones list referring zone status at fio start") introduced zone resets for zones in open condition which exceeds the limit of max_open_zones. However, this zone reset may break data in the zones even when fio does no write to them. Avoid the zone reset and report it as an error. Fixes: 954217b90191 ("zbd: Initialize open zones list referring zone status at fio start") Signed-off-by: Shin'ichiro Kawasaki Reviewed-by: Niklas Cassel Signed-off-by: Vincent Fu --- diff --git a/zbd.c b/zbd.c index 7529e68b..832868cb 100644 --- a/zbd.c +++ b/zbd.c @@ -1206,12 +1206,10 @@ int zbd_setup_files(struct thread_data *td) continue; /* * If the number of open zones exceeds specified limits, - * reset all extra open zones. + * error out. */ - if (zbd_reset_zone(td, f, z) < 0) { - log_err("Failed to reest zone %d\n", zi); - return 1; - } + log_err("Number of open zones exceeds max_open_zones limit\n"); + return 1; } }