git: f82177b8cfd2 - main - vm: Initialize the transient buffer mapping arena with M_WAITOK
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Apr 2022 19:49:09 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=f82177b8cfd2269aed060fe72e672ad4115ec8c3
commit f82177b8cfd2269aed060fe72e672ad4115ec8c3
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-04-14 19:46:14 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-04-14 19:46:14 +0000
vm: Initialize the transient buffer mapping arena with M_WAITOK
The wait flag is passed to UMA when allocating boundary tags for the
initial span, and UMA expects either M_WAITOK or M_NOWAIT to be present.
Reported by: cperciva
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
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 cd86ee2192c2..47b1eebbe139 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -235,7 +235,7 @@ again:
if (bio_transient_maxcnt != 0) {
size = (long)bio_transient_maxcnt * maxphys;
vmem_init(transient_arena, "transient arena",
- firstaddr, size, PAGE_SIZE, 0, 0);
+ firstaddr, size, PAGE_SIZE, 0, M_WAITOK);
firstaddr += size;
}
if (firstaddr != kmi->clean_eva)