From owner-freebsd-arch@FreeBSD.ORG Wed Jun 22 16:09:16 2011 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16CD71065679 for ; Wed, 22 Jun 2011 16:09:16 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5D81A8FC1A for ; Wed, 22 Jun 2011 16:09:14 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA12051 for ; Wed, 22 Jun 2011 19:09:13 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4E0213A9.5050303@FreeBSD.org> Date: Wed, 22 Jun 2011 19:09:13 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110504 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-arch@FreeBSD.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: stop scheduler in panic context X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 16:09:16 -0000 I would like to present the following diff for review and discussion: http://people.freebsd.org/~avg/stop_scheduler_on_panic.diff 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 changes that I consider to be useful improvements and [even] bug fixes, but which generated controversy in non-public discussions. If there is no negative feedback within next few days, then I plan to post the patch to current@ to solicit some testing. I will definitely wait for positive feedback before committing this change. I hope that I will be able to sneak it into the 9 release (unless there are objections to this). Thank you! -- Andriy Gapon