From owner-freebsd-stable@FreeBSD.ORG Wed May 30 01:45:14 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0A24716A469 for ; Wed, 30 May 2007 01:45:14 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 753BD13C448 for ; Wed, 30 May 2007 01:45:13 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 763FEEB59E6; Wed, 30 May 2007 09:45:12 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id NqZC0actoUGa; Wed, 30 May 2007 09:45:08 +0800 (CST) Received: from LI-Xins-MacBook.local (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id AEEAEEB59A7; Wed, 30 May 2007 09:45:06 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=WGDsqBIhfwMG+9IsYyeDORffdlcXg9d37V3ZkNyfQETVyKb1kgAxBksB7FTom5q9A uqxkcBXTZi4+aJWuRWzBw== Message-ID: <465CD713.5080309@delphij.net> Date: Wed, 30 May 2007 09:44:51 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: steve References: <20070529192155.GA19514@netfirms.com> In-Reply-To: <20070529192155.GA19514@netfirms.com> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig26DCA4F4826E44FD7C917E58" Cc: freebsd-stable@freebsd.org Subject: Re: vnode_pager_putpages errors on 6.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2007 01:45:14 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig26DCA4F4826E44FD7C917E58 Content-Type: multipart/mixed; boundary="------------010204080004000802070901" This is a multi-part message in MIME format. --------------010204080004000802070901 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Steve, steve wrote: [...] > http://atm.tut.fi/list-archive/freebsd-stable/msg19288.html >=20 > that I appled to 4.x and it solved the problem. >=20 > Now that I have upgraded to 6.2, the problem has > recurred, but the previous patch is no longer valid. Is > there something wrong with the patch/solution given, and > is there a solution for 6.2? In RELENG_6_2, the rate limit part of the patch was implemented in a different way. Could you please try this patch to see if it solves your problem? Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------010204080004000802070901 Content-Type: text/plain; name="patch-vnode_pager.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="patch-vnode_pager.c" Index: vnode_pager.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/vm/vnode_pager.c,v retrieving revision 1.221.2.7 diff -u -p -u -r1.221.2.7 vnode_pager.c --- vnode_pager.c 14 Oct 2006 06:04:32 -0000 1.221.2.7 +++ vnode_pager.c 30 May 2007 01:43:39 -0000 @@ -1083,6 +1083,7 @@ vnode_pager_generic_putpages(vp, m, byte struct iovec aiov; int error; int ioflags; + int status; int ppscheck =3D 0; static struct timeval lastfail; static int curfail; @@ -1177,8 +1178,9 @@ vnode_pager_generic_putpages(vp, m, byte printf("vnode_pager_putpages: residual I/O %d at %lu\n", auio.uio_resid, (u_long)m[0]->pindex); } + status =3D error ? VM_PAGER_BAD : VM_PAGER_OK; for (i =3D 0; i < ncount; i++) { - rtvals[i] =3D VM_PAGER_OK; + rtvals[i] =3D status; } return rtvals[0]; } --------------010204080004000802070901-- --------------enig26DCA4F4826E44FD7C917E58 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXNcTOfuToMruuMARCtAVAKCC0TJYuGsn85uhrETKpWO7rKQaxwCgiLYk 70u1hCYv/tamrg6wYR2aUM8= =d/Jv -----END PGP SIGNATURE----- --------------enig26DCA4F4826E44FD7C917E58--