mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
uma_zone_set_obj() must perform VM_OBJECT_LOCK_INIT() if the caller
provides storage for the vm_object.
This commit is contained in:
parent
d8e7c92c9e
commit
82774d8040
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114149
|
@ -1941,10 +1941,11 @@ uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int count)
|
|||
if (obj == NULL)
|
||||
obj = vm_object_allocate(OBJT_DEFAULT,
|
||||
pages);
|
||||
else
|
||||
else {
|
||||
VM_OBJECT_LOCK_INIT(obj);
|
||||
_vm_object_allocate(OBJT_DEFAULT,
|
||||
pages, obj);
|
||||
|
||||
}
|
||||
ZONE_LOCK(zone);
|
||||
zone->uz_kva = kva;
|
||||
zone->uz_obj = obj;
|
||||
|
|
Loading…
Reference in a new issue