From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 22 11:25:33 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 242F8106566C; Wed, 22 Apr 2009 11:25:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id BD54F8FC0A; Wed, 22 Apr 2009 11:25:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Lwaa2-0002aM-7m; Wed, 22 Apr 2009 14:25:30 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n3MBPPjf038134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Apr 2009 14:25:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n3MBPPeL042721; Wed, 22 Apr 2009 14:25:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n3MBPP7q042720; Wed, 22 Apr 2009 14:25:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 22 Apr 2009 14:25:25 +0300 From: Kostik Belousov To: Alfred Perlstein Message-ID: <20090422112525.GM3014@deviant.kiev.zoral.com.ua> References: <20090422003229.GL98432@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p2N8/IdOpufTRkPb" Content-Disposition: inline In-Reply-To: <20090422003229.GL98432@elvis.mu.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1Lwaa2-0002aM-7m e269e88d01bc64e2a1893f86d1446cd6 X-Terabit: YES Cc: hackers@freebsd.org Subject: Re: question about dev/md/md.c out of swap? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 11:25:33 -0000 --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--