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
F81702594: D22610.diff
Sat, Apr 20, 4:48 AM
Unknown Object (File)
Jan 30 2024, 11:08 PM
Unknown Object (File)
Jan 14 2024, 1:44 PM
Unknown Object (File)
Dec 20 2023, 4:12 AM
Unknown Object (File)
Dec 18 2023, 5:20 AM
Unknown Object (File)
Oct 18 2023, 5:14 AM
Unknown Object (File)
Sep 28 2023, 10:54 AM
Unknown Object (File)
Aug 31 2023, 8:50 PM
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