Revision b7e97872a65e1d57b4451769610554c131f37a0a authored by Dennis Maisenbacher on 06 September 2022, 07:39:28 UTC, committed by Christoph Hellwig on 07 September 2022, 06:33:17 UTC
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 <niklas.cassel@wdc.com>
Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 3770a42
History
File Mode Size
Kconfig -rw-r--r-- 522 bytes
Makefile -rw-r--r-- 366 bytes
netlabel_addrlist.c -rw-r--r-- 9.7 KB
netlabel_addrlist.h -rw-r--r-- 5.5 KB
netlabel_calipso.c -rw-r--r-- 19.1 KB
netlabel_calipso.h -rw-r--r-- 3.9 KB
netlabel_cipso_v4.c -rw-r--r-- 21.1 KB
netlabel_cipso_v4.h -rw-r--r-- 4.1 KB
netlabel_domainhash.c -rw-r--r-- 27.4 KB
netlabel_domainhash.h -rw-r--r-- 3.1 KB
netlabel_kapi.c -rw-r--r-- 37.4 KB
netlabel_mgmt.c -rw-r--r-- 21.7 KB
netlabel_mgmt.h -rw-r--r-- 6.0 KB
netlabel_unlabeled.c -rw-r--r-- 41.7 KB
netlabel_unlabeled.h -rw-r--r-- 6.3 KB
netlabel_user.c -rw-r--r-- 2.6 KB
netlabel_user.h -rw-r--r-- 1.2 KB

back to top