Page MenuHomeFreeBSD

Allow calls to vm_pager_haspages with the object read locked
ClosedPublic

Authored by jeff on Sun, Aug 18, 8:44 AM.

Details

Summary

Only the vnode pager required the exclusive lock and only because it wanted to drop and reacquire. I added macros to automate this which will likely be useful elsewhere as we do more read locking of objects.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jeff created this revision.Sun, Aug 18, 8:44 AM
jeff retitled this revision from Allow read locked objects to call has_pages to Allow calls to vm_pager_haspages with the object read locked.Sun, Aug 18, 8:46 AM
jeff edited the summary of this revision. (Show Details)
jeff added reviewers: kib, markj.
markj accepted this revision.Mon, Aug 19, 4:02 PM
This revision is now accepted and ready to land.Mon, Aug 19, 4:02 PM
kib accepted this revision.Mon, Aug 19, 6:23 PM
This revision was automatically updated to reflect the committed changes.