Page MenuHomeFreeBSD

Retire vm_reserv_extend_{contig,page}()
ClosedPublic

Authored by alc on Jun 1 2019, 4:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 7 2024, 8:53 AM
Unknown Object (File)
Oct 11 2023, 10:50 PM
Unknown Object (File)
Sep 6 2023, 8:10 AM
Unknown Object (File)
Sep 6 2023, 8:09 AM
Unknown Object (File)
Sep 6 2023, 8:04 AM
Unknown Object (File)
Sep 1 2023, 11:05 AM
Unknown Object (File)
Jun 25 2023, 4:27 PM
Unknown Object (File)
Jun 25 2023, 4:27 PM
Subscribers

Details

Summary

These functions were introduced as part of a false start toward fine-grained reservation locking. In the end, they were not needed, so eliminate them.

Update the comments about the locking requirements for vm_reserv_alloc_{contig,page}(). Neither requires the free page queues lock.

Order the parameters to vm_reserv_alloc_{contig,page}() consistently with the vm_page functions that call them.

Wrap several lines that are too long.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc edited the summary of this revision. (Show Details)
vm/vm_reserv.c
642 ↗(On Diff #58145)

Shouldn't this condition checked at the entry to the function, near the 'Is a reservation fundamentally impossible?' block ?

vm/vm_reserv.c
642 ↗(On Diff #58145)

No, in the case where no reservation already exists, the code actually handles the possibility that the allocation spans two or more reservations. It's actually quite easy to do so when we are allocating the reservations all in one vm_phys call. Here, we would need to check if the physical memory immediately after the existing reservation is free (or can be reclaimed). Once upon a time, I deemed that too unlikely to succeed, and therefore not worth the implementation effort.

This revision is now accepted and ready to land.Jun 1 2019, 5:41 PM
This revision was automatically updated to reflect the committed changes.