Date: Sat, 10 Feb 2001 08:54:16 -0800 From: Alfred Perlstein <bright@wintelcom.net> To: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> Cc: current@FreeBSD.ORG, smp@FreeBSD.ORG Subject: Re: Current SMP Kernel panics Message-ID: <20010210085416.H3274@fw.wintelcom.net> In-Reply-To: <20010210172417.F406@daemon.ninth-circle.org>; from asmodai@wxs.nl on Sat, Feb 10, 2001 at 05:24:17PM %2B0100 References: <5.0.2.1.2.20010209204045.00ac42a8@pozo.com> <20010210162033.C406@daemon.ninth-circle.org> <20010210172417.F406@daemon.ninth-circle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> [010210 08:24] wrote: > -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. That looks correct, need_resched() needs sched_lock. I'm currently looking to see if forward_roundrobin() does as well. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010210085416.H3274>