Date: Wed, 22 Jun 2011 09:58:34 -0700 From: mdf@FreeBSD.org To: Andriy Gapon <avg@freebsd.org> Cc: freebsd-arch@freebsd.org Subject: Re: stop scheduler in panic context Message-ID: <BANLkTinCTyhxVBvYaforgin-6_W23%2BCRYg@mail.gmail.com> In-Reply-To: <4E0213A9.5050303@FreeBSD.org> References: <4E0213A9.5050303@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 22, 2011 at 9:09 AM, Andriy Gapon <avg@freebsd.org> wrote: > > I would like to present the following diff for review and discussion: > http://people.freebsd.org/~avg/stop_scheduler_on_panic.diff The idea seems sound to me, but I don't see any bits in sched_4bsd.c or sched_ule.c to prevent other threads from running. Or does that already happen when panicstr !=3D NULL? Thanks, matthew > The idea is to stop scheduler in a panic context and to provide a special > environment for the only running thread, the one that called panic(9). > > I tried to make this diff as minimal as possible, it doesn't include chan= ges that > I consider to be useful improvements and [even] bug fixes, but which gene= rated > controversy in non-public discussions. > > If there is no negative feedback within next few days, then I plan to pos= t the > patch to current@ to solicit some testing. =A0I will definitely wait for = positive > feedback before committing this change. =A0I hope that I will be able to = sneak it > into the 9 release (unless there are objections to this). > > Thank you! > -- > Andriy Gapon > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinCTyhxVBvYaforgin-6_W23%2BCRYg>