Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2005 11:06:24 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        David Xu <davidxu@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys proc.h src/sys/kern kern_sig.c
Message-ID:  <200503071106.25190.jhb@FreeBSD.org>
In-Reply-To: <200503042246.j24MkVv2015008@repoman.freebsd.org>
References:  <200503042246.j24MkVv2015008@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 04 March 2005 05:46 pm, David Xu wrote:
> davidxu     2005-03-04 22:46:31 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/sys              proc.h
>     sys/kern             kern_sig.c
>   Log:
>   The td_waitset is pointing to a stack address when thread is waiting
>   for a signal, because kernel stack is swappable, this causes page fault
>   in kernel under heavy swapping case. Fix this bug by eliminating unneeded
>   code.

Did you consider simply embedding a complete sigset_t as td_waitset in struct 
thread instead?  Signal sets aren't very large.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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