]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 230877:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Feb 2012 07:30:48 +0000 (07:30 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 8 Feb 2012 07:30:48 +0000 (07:30 +0000)
commitc4eafaeab5b456a13c50a4f91a51ffe17a242c92
tree0cd8c74cf78856bc805a1b392377738bba3f8746
parent35bccb7d9e2d36e5103794f7061e9ba8a4bf2db7
MFC 230877:
Fix NULL dereference panic on attempt to turn off (on system shutdown)
disconnected swap device.

This is quick and imperfect solution, as swap device will still be opened
and GEOM will not be able to destroy it. Proper solution would be to
automatically turn off and close disconnected swap device, but with existing
code it will cause panic if there is at least one page on device, even if
it is unimportant page of the user-level process. It needs some work.

git-svn-id: svn://svn.freebsd.org/base/stable/9@231188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/vm/swap_pager.c