Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2007 09:44:51 +0800
From:      LI Xin <delphij@delphij.net>
To:        steve <steve@netfirms.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: vnode_pager_putpages errors on 6.2
Message-ID:  <465CD713.5080309@delphij.net>
In-Reply-To: <20070529192155.GA19514@netfirms.com>
References:  <20070529192155.GA19514@netfirms.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <delphij@delphij.net>	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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465CD713.5080309>