Date: Fri, 17 Mar 2006 11:41:03 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Mikhail Teterin <mi+mx@aldan.algebra.com> Cc: current@freebsd.org Subject: Re: unkillable process stuck in "nfsaio" Message-ID: <20060317094103.GD1203@deviant.kiev.zoral.com.ua> In-Reply-To: <200603161516.27081.mi%2Bmx@aldan.algebra.com> References: <200603161516.27081.mi%2Bmx@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
> to a remote share.
>
> When I decided to stop it and pressed Ctrl-C, the process hung and remains
> unkillable (even with -9).
>
> Pressing Ctrl-T prints the following:
>
> load: 0.04 cmd: mkisofs 48414 [nfsaio] 0.70u 5.89s 0% 8784k
>
> The share is mounted as:
>
> pandora:/backup on /tmp/.a/pandora/backup (nfs, nosuid)
>
> The client is FreeBSD 6.1-PRERELEASE #0: Mon Mar 13 ... i386.
>
> The server information is deliberately witheld, because it should be possible
> to abort and kill the client-side writer regardless of the server version :-)
>
> Thanks in advance for fixing this bug. Yours,
>
> -mi
Just out of curiosity:
could you, please, test this little patch:
Index: sys/nfsclient/nfs_bio.c
===================================================================
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 == PCATCH) {
- slpflag = 0;
slptimeo = 2 * hz;
}
}
It seems from the code that the condition should be easily
triggered.
Thanks.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)
iD8DBQFEGoQuC3+MBN1Mb4gRAtlcAKDXQ5VatLcT1VYRkpPilOaBjc+uzACg835F
iHNqt+wqAden/05N6dJ1W3w=
=UBjS
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060317094103.GD1203>
