HomeFreeBSD

swap_pager: avoid meta_transfer race

Description

swap_pager: avoid meta_transfer race

Function swp_pager_meta_transfer expects that after dropping and
reacquiring an object lock, the swap block it's processing still
exists, and has not been removed from the trie and freed. Rewrite to
avoid depending on that, by scrubbing, removing and freeing it before
releasing the lock.

Reviewed by: alc, markj
Differential Revision: https://reviews.freebsd.org/D46629

Details

Provenance
dougmAuthored on Sep 15 2024, 6:00 AM
Reviewer
alc
Differential Revision
D46629: swap_pager: handle swblk being freed while lock dropped in meta_transfer
Parents
rGf0bcebe67ef6: pflogd: Define structures removed in libpcap-1.10.5
Branches
Unknown
Tags
Unknown