HomeFreeBSD

swapon: extend the region where the swap vnode is locked

Description

swapon: extend the region where the swap vnode is locked

to cover VOP_GETATTR() call in sys_swapon(). Move locking from inside
swapongeom() and swaponvp() into sys_swapon().

Reported by and tested by: peterj
Reviewed by: markj
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D33119

Details

Provenance
kibAuthored on Nov 24 2021, 3:06 AM
Reviewer
markj
Differential Revision
D33119: swap on file: fix locking
Parents
rGa6d04f34a4db: swap pager: lock vnode around VOP_CLOSE()
Branches
Unknown
Tags
Unknown