kernel/vm: Notify the low_resource manager on low_resource address space.
We cannot wait here, but now that the low_resource manager actually does something with the information it is provided, we can invoke it.
This commit is contained in:
parent
42ed7815ff
commit
d38d90de25
@ -1014,11 +1014,9 @@ map_backing_store(VMAddressSpace* addressSpace, VMCache* cache, off_t offset,
|
|||||||
allocationFlags, _virtualAddress);
|
allocationFlags, _virtualAddress);
|
||||||
if (status == B_NO_MEMORY
|
if (status == B_NO_MEMORY
|
||||||
&& addressRestrictions->address_specification == B_ANY_KERNEL_ADDRESS) {
|
&& addressRestrictions->address_specification == B_ANY_KERNEL_ADDRESS) {
|
||||||
// TODO: At present, there is no way to notify the low_resource monitor
|
// Due to how many locks are held, we cannot wait here for space to be
|
||||||
// that kernel addresss space is fragmented, nor does it check for this
|
// freed up, but we can at least notify the low_resource handler.
|
||||||
// automatically. Due to how many locks are held, we cannot wait here
|
low_resource(B_KERNEL_RESOURCE_ADDRESS_SPACE, size, B_RELATIVE_TIMEOUT, 0);
|
||||||
// for space to be freed up, but it would be good to at least notify
|
|
||||||
// that we tried and failed to allocate some amount.
|
|
||||||
}
|
}
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
goto err2;
|
goto err2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user