Date: Thu, 21 Dec 2006 21:10:20 GMT From: Robert Watson <rwatson@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/102654: panic: sleeping thread Message-ID: <200612212110.kBLLAKhR021564@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/102654; it has been noted by GNATS. From: Robert Watson <rwatson@FreeBSD.org> To: Eric van Gyzen <eric@vangyzen.net> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: kern/102654: panic: sleeping thread Date: Thu, 21 Dec 2006 21:02:19 +0000 (GMT) On Thu, 21 Dec 2006, Robert Watson wrote: > The attached patch, appropriately munged for the version of FreeBSD you're > running, may help. Or not, I suppose. :-) > > Index: vm_zeroidle.c > =================================================================== > RCS file: /home/ncvs/src/sys/vm/vm_zeroidle.c,v > retrieving revision 1.41 > diff -u -r1.41 vm_zeroidle.c > --- vm_zeroidle.c 6 Dec 2006 06:34:57 -0000 1.41 > +++ vm_zeroidle.c 21 Dec 2006 19:55:53 -0000 > @@ -155,6 +155,7 @@ > wakeup_needed = TRUE; > msleep(&zero_state, &vm_page_queue_mtx, > PDROP, "pgzero", hz * 300); > + vm_page_unlock_queues(); > } > } > } Actually, I have misread the code above, the PDROP flag causes the mutex to be dropped and not picked up again during the sleep, so what I thought the source of the problem is not the problem. Please do not use this patch :-). Robert N M Watson Computer Laboratory University of Cambridge
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612212110.kBLLAKhR021564>