Searched hist:288281 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/vm/
H A Dvm_kern.cdiff 288281 Sat Sep 26 21:00:56 MDT 2015 alc The conversion of kmem_alloc_attr() from operating on a vm map to a vmem
arena in r254025 introduced a bug in the case when an allocation is only
partially successful. Specifically, the vm object lock was not being
acquired before freeing the allocated pages. To address this bug, replace
the existing code by a call to kmem_unback().

Change the type of a variable in kmem_alloc_attr() so that an allocation
of two or more gigabytes won't fail.

Replace the error handling code in kmem_back() by a call to kmem_unback().

Reviewed by: kib (an earlier version)
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

Completed in 79 milliseconds