Page MenuHomeFreeBSD

Do not lock vm map in swapout_procs().
ClosedPublic

Authored by kib on Dec 29 2017, 7:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 6, 12:47 PM
Unknown Object (File)
Sep 8 2025, 5:27 AM
Unknown Object (File)
Aug 24 2025, 2:11 AM
Unknown Object (File)
Aug 11 2025, 9:39 PM
Unknown Object (File)
Aug 5 2025, 4:16 PM
Unknown Object (File)
Jul 14 2025, 8:26 AM
Unknown Object (File)
Jul 5 2025, 10:47 PM
Unknown Object (File)
Jul 2 2025, 3:43 AM
Subscribers

Details

Summary

Neither swapout_procs() nor swapout() access the map.

Diff Detail

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

Event Timeline

Referencing vmspace is useless after vm_map is not accessed.

This revision is now accepted and ready to land.Dec 29 2017, 7:40 PM
This revision was automatically updated to reflect the committed changes.

Hmm. Do we still need to unlock and relock the process?

_PHOLD_LITE(p);
PROC_UNLOCK(p);
sx_sunlock(&allproc_lock);

PROC_LOCK(p);
if (p->p_lock != 1 || (p->p_flag & (P_STOPPED_SINGLE |
    P_TRACED | P_SYSTEM)) != 0)
        goto nextproc;