From owner-freebsd-smp Sat Feb 10 8:24:41 2001 Delivered-To: freebsd-smp@freebsd.org Received: from garm.bart.nl (garm.bart.nl [194.158.170.13]) by hub.freebsd.org (Postfix) with ESMTP id CB79337B401; Sat, 10 Feb 2001 08:24:21 -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 f1AGOHK25539; Sat, 10 Feb 2001 17:24:17 +0100 (CET) Received: (from asmodai@localhost) by daemon.chronias.ninth-circle.org (8.11.1/8.11.0) id f1AGOIl00820; Sat, 10 Feb 2001 17:24:18 +0100 (CET) (envelope-from asmodai) Date: Sat, 10 Feb 2001 17:24:17 +0100 From: Jeroen Ruigrok/Asmodai To: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210172417.F406@daemon.ninth-circle.org> References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010210162033.C406@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Feb 10, 2001 at 04:20:34PM +0100 Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -On [20010210 16:27], Jeroen Ruigrok/Asmodai (asmodai@wxs.nl) wrote: >#ifdef SMP > mtx_lock_spin(&sched_lock); > need_resched(); > forward_roundrobin(); > mtx_unlock_spin(&sched_lock); >#else This does not quite work. I don't get the panic() anymore, but now I have solve the hanging. :) Perhaps only need_resched() needs to be spinlocked. I am not sure, I am not a SMP guru. -- 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-smp" in the body of the message