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-- 4.8 KB
Makefile -rw-r--r-- 427 bytes
af_ax25.c -rw-r--r-- 45.3 KB
ax25_addr.c -rw-r--r-- 5.8 KB
ax25_dev.c -rw-r--r-- 4.9 KB
ax25_ds_in.c -rw-r--r-- 6.9 KB
ax25_ds_subr.c -rw-r--r-- 4.8 KB
ax25_ds_timer.c -rw-r--r-- 5.7 KB
ax25_iface.c -rw-r--r-- 4.7 KB
ax25_in.c -rw-r--r-- 10.3 KB
ax25_ip.c -rw-r--r-- 5.3 KB
ax25_out.c -rw-r--r-- 8.5 KB
ax25_route.c -rw-r--r-- 10.8 KB
ax25_std_in.c -rw-r--r-- 10.9 KB
ax25_std_subr.c -rw-r--r-- 2.1 KB
ax25_std_timer.c -rw-r--r-- 4.1 KB
ax25_subr.c -rw-r--r-- 7.0 KB
ax25_timer.c -rw-r--r-- 4.9 KB
ax25_uid.c -rw-r--r-- 4.3 KB
sysctl_net_ax25.c -rw-r--r-- 4.3 KB

back to top