VM pager subsystem shutdown?

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Tue, 10 May 2005 01:12:30 -0400 (EDT)
Hi,

Upon looking at the boot(9) code in kern_shutdown.c, it occured to me that 
there doesn't seem to be shutdown code for the VM pager subsystem. Is this 
done on purpose? If not, is creating a global-scope function in 
vm/swap_pager.c that iterates over the swdevt's in the LISTQ and feeds 
them swap_pager_swapoff() the simplest of ways of going about this?

I stumbled upon this while analyzing the various vnodes still open at 
shutdown during the call to vfs_unmountall (See the patch in the "The 
"unmount of /dev failed (BUSY)" message, explained" thread). The only 
reason for the reference to /dev/amrd0s1b that I can think of would be the 
use of swap, and disabling it in fstab and re-performing the test confirms 
this.

Please be gentle, I am still learning about our VM subsystem... :-)

Andy

/*  Andre Guibert de Bruet  * 6f43 6564 7020 656f 2e74 4220 7469 6a20 */
/*   Code poet / Sysadmin   * 636f 656b 2e79 5320 7379 6461 696d 2e6e */
/*   GSM: +1 734 846 8758   * 5520 494e 2058 6c73 7565 6874 002e 0000 */
/* WWW: siliconlandmark.com *      Tormenting bytes since 1980.       */
Received on Tue May 10 2005 - 03:12:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:34 UTC