Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 17:31:33 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        current@FreeBSD.org
Cc:        alfred@FreeBSD.org
Subject:   swap_pager_swap_init()
Message-ID:  <XFMail.010620173133.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
The swap pager getpages/putpages routines depend on swap_pager_swap_init()
being called before they are called.  However, swap_pager_swap_init() isn't
called until the pagedaemon starts up.  Granted, it should always be run before
init has a chance to exec swapon via /etc/rc, however, would it be more correct
to instead let swap_pager_swap_init() be run by a SI_SUB_VM SYSINIT
(SI_ORDER_ANY, with the other VM sysinit's bumped up to be less than ANY).  The
race is incredibly small, but I'd feel better if it was more correct.  Comments?

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010620173133.jhb>