From owner-freebsd-current@FreeBSD.ORG Fri Mar 17 09:41:32 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5964B16A400 for ; Fri, 17 Mar 2006 09:41:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (ll-227.216.82.212.sovam.net.ua [212.82.216.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A16643D45 for ; Fri, 17 Mar 2006 09:41:30 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.3/8.13.3) with ESMTP id k2H9f4U2000359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Mar 2006 11:41:04 +0200 (EET) (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.13.4/8.13.4) with ESMTP id k2H9f4ci091303; Fri, 17 Mar 2006 11:41:04 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.4/8.13.4/Submit) id k2H9f336091302; Fri, 17 Mar 2006 11:41:03 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 17 Mar 2006 11:41:03 +0200 From: Kostik Belousov To: Mikhail Teterin Message-ID: <20060317094103.GD1203@deviant.kiev.zoral.com.ua> References: <200603161516.27081.mi+mx@aldan.algebra.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HWvPVVuAAfuRc6SZ" Content-Disposition: inline In-Reply-To: <200603161516.27081.mi+mx@aldan.algebra.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on fw.zoral.com.ua Cc: current@freebsd.org Subject: Re: unkillable process stuck in "nfsaio" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 09:41:32 -0000 --HWvPVVuAAfuRc6SZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 16, 2006 at 03:16:26PM -0500, Mikhail Teterin wrote: > I was creating a big .iso image using mkisofs. The file was written over = NFS=20 > to a remote share. >=20 > When I decided to stop it and pressed Ctrl-C, the process hung and remain= s=20 > unkillable (even with -9). >=20 > Pressing Ctrl-T prints the following: >=20 > load: 0.04 cmd: mkisofs 48414 [nfsaio] 0.70u 5.89s 0% 8784k >=20 > The share is mounted as: >=20 > pandora:/backup on /tmp/.a/pandora/backup (nfs, nosuid) >=20 > The client is FreeBSD 6.1-PRERELEASE #0: Mon Mar 13 ... i386. >=20 > The server information is deliberately witheld, because it should be poss= ible=20 > to abort and kill the client-side writer regardless of the server version= :-) >=20 > Thanks in advance for fixing this bug. Yours, >=20 > -mi Just out of curiosity: could you, please, test this little patch: Index: sys/nfsclient/nfs_bio.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: /usr/local/arch/ncvs/src/sys/nfsclient/nfs_bio.c,v retrieving revision 1.154 diff -u -r1.154 nfs_bio.c --- sys/nfsclient/nfs_bio.c 21 Nov 2005 19:23:46 -0000 1.154 +++ sys/nfsclient/nfs_bio.c 17 Mar 2006 09:38:40 -0000 @@ -1355,7 +1355,6 @@ if (error2) return (error2); if (slpflag =3D=3D PCATCH) { - slpflag =3D 0; slptimeo =3D 2 * hz; } } It seems from the code that the condition should be easily triggered. Thanks. --HWvPVVuAAfuRc6SZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEGoQuC3+MBN1Mb4gRAtlcAKDXQ5VatLcT1VYRkpPilOaBjc+uzACg835F iHNqt+wqAden/05N6dJ1W3w= =UBjS -----END PGP SIGNATURE----- --HWvPVVuAAfuRc6SZ--