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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 2.7 KB |
Makefile | -rw-r--r-- | 457 bytes |
addr.c | -rw-r--r-- | 3.9 KB |
addr.h | -rw-r--r-- | 654 bytes |
atm_misc.c | -rw-r--r-- | 2.6 KB |
atm_sysfs.c | -rw-r--r-- | 3.9 KB |
br2684.c | -rw-r--r-- | 22.8 KB |
clip.c | -rw-r--r-- | 22.0 KB |
common.c | -rw-r--r-- | 21.1 KB |
common.h | -rw-r--r-- | 1.6 KB |
ioctl.c | -rw-r--r-- | 9.2 KB |
lec.c | -rw-r--r-- | 58.2 KB |
lec.h | -rw-r--r-- | 5.1 KB |
lec_arpc.h | -rw-r--r-- | 3.0 KB |
mpc.c | -rw-r--r-- | 38.2 KB |
mpc.h | -rw-r--r-- | 1.9 KB |
mpoa_caches.c | -rw-r--r-- | 14.2 KB |
mpoa_caches.h | -rw-r--r-- | 3.1 KB |
mpoa_proc.c | -rw-r--r-- | 7.2 KB |
pppoatm.c | -rw-r--r-- | 15.0 KB |
proc.c | -rw-r--r-- | 9.6 KB |
protocols.h | -rw-r--r-- | 418 bytes |
pvc.c | -rw-r--r-- | 3.8 KB |
raw.c | -rw-r--r-- | 2.1 KB |
resources.c | -rw-r--r-- | 8.9 KB |
resources.h | -rw-r--r-- | 1.1 KB |
signaling.c | -rw-r--r-- | 6.2 KB |
signaling.h | -rw-r--r-- | 877 bytes |
svc.c | -rw-r--r-- | 16.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...