git: 9a4e70157834 - stable/13 - vm: Initialize the transient buffer mapping arena with M_WAITOK
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 13:21:14 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9a4e70157834ecfaebe8ec4bf89dff261deaf60d commit 9a4e70157834ecfaebe8ec4bf89dff261deaf60d Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-04-14 19:46:14 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-04-21 13:18:04 +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 Sponsored by: The FreeBSD Foundation (cherry picked from commit f82177b8cfd2269aed060fe72e672ad4115ec8c3) --- 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..884b367adc2b 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)