Date: Tue, 09 Nov 2004 08:37:55 +0500 From: Boris Kovalenko <boris@ntmk.ru> To: David Xu <davidxu@freebsd.org>, freebsd-current@freebsd.org Subject: Re: [FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state Message-ID: <41903B93.4050604@ntmk.ru> In-Reply-To: <418B04B7.6010905@freebsd.org> References: <418AFFBB.4020501@ntmk.ru> <418B04B7.6010905@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
David Xu wrote:
Hello!
Seems to be OK. Four days without problems.
> Please try following patch:
>
> Index: kern_thread.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/kern/kern_thread.c,v
> retrieving revision 1.205
> diff -u -r1.205 kern_thread.c
> --- kern_thread.c 4 Nov 2004 22:13:16 -0000 1.205
> +++ kern_thread.c 5 Nov 2004 04:23:24 -0000
> @@ -832,11 +832,10 @@
> continue;
> /*
> * maybe other inhibitted states too?
> - * XXXKSE Is it totally safe to
> - * suspend a non-interruptable thread?
> */
> - if (td2->td_inhibitors &
> - (TDI_SLEEPING | TDI_SWAPPED))
> + if ((td2->td_flags & TDF_SINTR) &&
> + (td2->td_inhibitors &
> + (TDI_SLEEPING | TDI_SWAPPED)))
> thread_suspend_one(td2);
> break;
> }
With respect,
Boris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41903B93.4050604>
