git: cfbb5f8ce0f6 - main - vm_ksubmap_init: pass M_WAITOK to vmem_init -> uma_zalloc_arg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Mar 2022 01:11:41 UTC
The branch main has been updated by vangyzen:
URL: https://cgit.FreeBSD.org/src/commit/?id=cfbb5f8ce0f69b0bc28b5553db53f8615efc84eb
commit cfbb5f8ce0f69b0bc28b5553db53f8615efc84eb
Author: Eric van Gyzen <vangyzen@FreeBSD.org>
AuthorDate: 2022-03-04 20:55:12 +0000
Commit: Eric van Gyzen <vangyzen@FreeBSD.org>
CommitDate: 2022-03-26 01:10:37 +0000
vm_ksubmap_init: pass M_WAITOK to vmem_init -> uma_zalloc_arg
uma_zalloc_arg expects exactly one of the two WAIT flags. A future
commit will assert this.
Reviewed by: rstone
MFC after: 1 month
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D34450
---
sys/vm/vm_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index f17f81264eb6..cd86ee2192c2 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -226,7 +226,7 @@ again:
kmi->buffer_sva = firstaddr;
kmi->buffer_eva = kmi->buffer_sva + size;
vmem_init(buffer_arena, "buffer arena", kmi->buffer_sva, size,
- PAGE_SIZE, (mp_ncpus > 4) ? BKVASIZE * 8 : 0, 0);
+ PAGE_SIZE, (mp_ncpus > 4) ? BKVASIZE * 8 : 0, M_WAITOK);
firstaddr += size;
/*