kern/102654: panic: sleeping thread

Robert Watson rwatson at FreeBSD.org
Thu Dec 21 13:10:20 PST 2006


The following reply was made to PR kern/102654; it has been noted by GNATS.

From: Robert Watson <rwatson at FreeBSD.org>
To: Eric van Gyzen <eric at vangyzen.net>
Cc: FreeBSD-gnats-submit at 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


More information about the freebsd-bugs mailing list