Page MenuHomeFreeBSD

Fix the last few cases that grab without busy or wired. This also happens to fix two cases of direct valid bit modification.
ClosedPublic

Authored by jeff on Nov 30 2019, 8:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 31, 8:22 AM
Unknown Object (File)
Thu, Oct 31, 8:22 AM
Unknown Object (File)
Thu, Oct 31, 8:22 AM
Unknown Object (File)
Thu, Oct 31, 8:21 AM
Unknown Object (File)
Thu, Oct 31, 8:21 AM
Unknown Object (File)
Thu, Oct 31, 8:01 AM
Unknown Object (File)
Oct 17 2024, 2:24 PM
Unknown Object (File)
Oct 5 2024, 7:06 AM
Subscribers

Details

Summary

I have a number of small patches in my branch targeted at making the grab & busy usage more consistent. This enables tighter assertions that are necessary for lockless lookup & busy. In these particular cases the busy lock is acquired for free in page_alloc and we are only paying an extra atomic to release.

Diff Detail

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

Event Timeline

jeff retitled this revision from Fix the last few cases that grab without busy or wired. This also happens to fix two cases of direct valid bit modification. to Fix the last few cases that grab without busy or wired. This also happensto fix two cases of direct valid bit modification..Nov 30 2019, 8:48 AM
jeff edited the summary of this revision. (Show Details)
jeff added reviewers: kib, markj, alc, dougm.
sys/compat/cloudabi/cloudabi_vdso.c
63–64 ↗(On Diff #65064)

Can't these two operations now be placed after the lock release? To be clear, I'm not concerned about the performance impact here, but rather that these are good examples when other people cut-and-paste elsewhere.

sys/compat/cloudabi/cloudabi_vdso.c
63–64 ↗(On Diff #65064)

Yes you are right. Will fix.

jeff retitled this revision from Fix the last few cases that grab without busy or wired. This also happensto fix two cases of direct valid bit modification. to Fix the last few cases that grab without busy or wired. This also happens to fix two cases of direct valid bit modification..Dec 1 2019, 4:51 AM

Address review feedback.

Drop object lock earlier.

This revision is now accepted and ready to land.Dec 1 2019, 8:52 PM