summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorYao Sang <sangyao@kylinos.cn>2026-08-14 10:32:24 +0800
committerJens Axboe <axboe@kernel.dk>2026-08-15 17:17:11 -0600
commit2707acf1856da266139986c9398ad722fd4f48c0 (patch)
tree8d7d252a9f69f05c5d55039616e50bf6e0dc0c5b /tools/perf/scripts/python/parallel-perf.py
parent4febfe7d98948bf6693f5c6a0a7e198e8fb4e584 (diff)
ublk: reject non-power-of-2 zone sizes in SET_PARAMS
UBLK_F_ZONED uses params.basic.chunk_sectors as zone size. ublk uses ilog2(chunk_sectors) to get number of zones, so the value must be power of 2. If chunk_sectors is 96 and dev_sectors is 96 * 16, userspace asks for 16 zones. But the shift calculation gets 24 zones. Block layer rejects such zone size when the disk is started. But SET_PARAMS has already returned success, which is confusing for userspace. Reject it in SET_PARAMS with other zoned parameter checks. Fixes: 29802d7ca33b ("ublk: enable zoned storage support") Signed-off-by: Yao Sang <sangyao@kylinos.cn> Link: https://patch.msgid.link/20260814023226.354288-2-sangyao@kylinos.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions