diff options
author | Dennis Maisenbacher <[email protected]> | 2022-09-06 09:39:28 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2022-09-07 08:33:17 +0200 |
commit | b7e97872a65e1d57b4451769610554c131f37a0a (patch) | |
tree | 1bd19c543d990b0da8368e722cafc88c4ef6b7f6 /tools/perf/util/trace-event-scripting.c | |
parent | 3770a42bb8ceb856877699257a43c0585a5d2996 (diff) |
nvmet: fix mar and mor off-by-one errors
Maximum Active Resources (MAR) and Maximum Open Resources (MOR) are 0's
based vales where a value of 0xffffffff indicates that there is no limit.
Decrement the values that are returned by bdev_max_open_zones and
bdev_max_active_zones as the block layer helpers are not 0's based.
A 0 returned by the block layer helpers indicates no limit, thus convert
it to 0xffffffff (U32_MAX).
Fixes: aaf2e048af27 ("nvmet: add ZBD over ZNS backend support")
Suggested-by: Niklas Cassel <[email protected]>
Signed-off-by: Dennis Maisenbacher <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions