From owner-freebsd-current Sat Feb 10 7:21: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from garm.bart.nl (garm.bart.nl [194.158.170.13]) by hub.freebsd.org (Postfix) with ESMTP id 5C57C37B4EC; Sat, 10 Feb 2001 07:20:46 -0800 (PST) Received: from daemon.chronias.ninth-circle.org (root@cable.ninth-circle.org [195.38.232.6]) by garm.bart.nl (8.10.1/8.10.1) with ESMTP id f1AFKeF23286; Sat, 10 Feb 2001 16:20:40 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.1/8.11.0) id f1AFKYK00603; Sat, 10 Feb 2001 16:20:34 +0100 (CET) (envelope-from asmodai) Date: Sat, 10 Feb 2001 16:20:34 +0100 From: Jeroen Ruigrok/Asmodai To: Manfred Antar Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210162033.C406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com>; from null@pozo.com on Fri, Feb 09, 2001 at 08:43:51PM -0800 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20010210 06:26], Manfred Antar (null@pozo.com) wrote: >APIC_IO: routing 8254 via 8259 and IOAPIC #0 intpin 0 >IPsec: Initialized Security Association Processing. >panic: mutex sched lock not owned at ../../kern/kern_synch.c:175 Me too. 166 static void 167 roundrobin(arg) 168 void *arg; 169 { 170 #ifndef SMP 171 struct proc *p = curproc; /* XXX */ 172 #endif 173 174 #ifdef SMP 175 need_resched(); 176 forward_roundrobin(); 177 #else 178 if (p == PCPU_GET(idleproc) || RTP_PRIO_NEED_RR(p->p_rtprio.type) ) 179 need_resched(); 180 #endif 181 182 callout_reset(&roundrobin_callout, sched_quantum, roundrobin, NUL L); 183 } Should it become: #ifdef SMP mtx_lock_spin(&sched_lock); need_resched(); forward_roundrobin(); mtx_unlock_spin(&sched_lock); #else ? I cannot test it yet, need to reanimate my testbox first. -- Jeroen Ruigrok vd Werven/Asmodai asmodai@[wxs.nl|bart.nl|freebsd.org] Documentation nutter/C-rated Coder BSD: Technical excellence at its best D78D D0AD 244D 1D12 C9CA 7152 035C 1138 546A B867 I'm a child of the air, I'm a witch of the wind... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message