Date: Wed, 22 Apr 2009 14:25:25 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Alfred Perlstein <alfred@freebsd.org> Cc: hackers@freebsd.org Subject: Re: question about dev/md/md.c out of swap? Message-ID: <20090422112525.GM3014@deviant.kiev.zoral.com.ua> In-Reply-To: <20090422003229.GL98432@elvis.mu.org> References: <20090422003229.GL98432@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--p2N8/IdOpufTRkPb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 21, 2009 at 05:32:29PM -0700, Alfred Perlstein wrote: > Hello, a developer here at work asked me to go over=20 > some of the swapper code with him. >=20 > We came across something we both couldn't understand, > so I was wondering if anyone had looked at this. >=20 > in dev/md/md.c mdstart_swap() there is the following code, > it seems that in the case of VM_PAGER_ERROR most of the state > is unwound, however the page is not freed. Is this a bug or > are we missing something? How is the page released? The page belongs to the object. It will be freed when the object is deallocated. --p2N8/IdOpufTRkPb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAknu/qQACgkQC3+MBN1Mb4h+SgCeOjIWn+wE/dZUs3nbLQQo/r6P OkcAoMkBjYy/ZjrTHVMm1wUeTNiXeGX+ =COMt -----END PGP SIGNATURE----- --p2N8/IdOpufTRkPb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090422112525.GM3014>