Page MenuHomeFreeBSD

Remove unnecessary object locking from the vnode pager.
ClosedPublic

Authored by jeff on Oct 30 2019, 2:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 21, 2:09 AM
Unknown Object (File)
Sun, Jun 16, 3:31 AM
Unknown Object (File)
Feb 16 2024, 9:12 AM
Unknown Object (File)
Feb 16 2024, 9:12 AM
Unknown Object (File)
Feb 16 2024, 9:12 AM
Unknown Object (File)
Feb 16 2024, 9:12 AM
Unknown Object (File)
Feb 16 2024, 9:12 AM
Unknown Object (File)
Dec 27 2023, 10:54 AM
Subscribers

Details

Summary

This is more lock pushdown as a result of the busy/valid/dirty changes.

Test Plan

pho

Diff Detail

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

Event Timeline

jeff edited the test plan for this revision. (Show Details)
jeff added reviewers: kib, alc, markj, dougm.
sys/vm/vnode_pager.c
1151 ↗(On Diff #63781)

So the consistency of the operation against vnp_size is now depends on the vnode lock, right ? Note that ZFS still calls vnode_pager_setsize() with the vnode unlocked (I fixed this for NFS recently).

sys/vm/vnode_pager.c
1151 ↗(On Diff #63781)

You are right. I left read locking around it elsewhere. I can restore that.

Readd a missing lock around the vnode size.

This revision is now accepted and ready to land.Nov 18 2019, 4:15 PM