diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2021-03-09 12:17:15 +0100 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2021-05-17 09:19:00 +0200 |
commit | 83e85b614ddab2810b75583c6b3106ff42207a57 (patch) | |
tree | 0688ca66ecd0c0d7173df25d649541533b983f68 /hw | |
parent | 9d394c80f19b86c5a0a8ca30d976bf2a25c3b645 (diff) |
hw/block/nvme: remove irrelevant zone resource checks
It is not an error to report more active/open zones supported than the
number of zones in the namespace.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/block/nvme-ns.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/hw/block/nvme-ns.c b/hw/block/nvme-ns.c index b25838ac4f..008deb5e87 100644 --- a/hw/block/nvme-ns.c +++ b/hw/block/nvme-ns.c @@ -210,19 +210,6 @@ static int nvme_ns_zoned_check_calc_geometry(NvmeNamespace *ns, Error **errp) return -1; } - if (ns->params.max_open_zones > ns->num_zones) { - error_setg(errp, - "max_open_zones value %u exceeds the number of zones %u", - ns->params.max_open_zones, ns->num_zones); - return -1; - } - if (ns->params.max_active_zones > ns->num_zones) { - error_setg(errp, - "max_active_zones value %u exceeds the number of zones %u", - ns->params.max_active_zones, ns->num_zones); - return -1; - } - if (ns->params.max_active_zones) { if (ns->params.max_open_zones > ns->params.max_active_zones) { error_setg(errp, "max_open_zones (%u) exceeds max_active_zones (%u)", |