From owner-svn-src-stable@FreeBSD.ORG Sun Jan 15 22:23:42 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CDC51065795; Sun, 15 Jan 2012 22:23:42 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 27AA38FC28; Sun, 15 Jan 2012 22:23:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q0FMNgJb003424; Sun, 15 Jan 2012 22:23:42 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0FMNg0Y003422; Sun, 15 Jan 2012 22:23:42 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201201152223.q0FMNg0Y003422@svn.freebsd.org> From: Andriy Gapon Date: Sun, 15 Jan 2012 22:23:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230176 - stable/8/sys/kern X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2012 22:23:42 -0000 Author: avg Date: Sun Jan 15 22:23:41 2012 New Revision: 230176 URL: http://svn.freebsd.org/changeset/base/230176 Log: MFC r228265: critical_exit: ignore td_owepreempt if kdb_active is set Modified: stable/8/sys/kern/kern_switch.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/kern/kern_switch.c ============================================================================== --- stable/8/sys/kern/kern_switch.c Sun Jan 15 22:20:52 2012 (r230175) +++ stable/8/sys/kern/kern_switch.c Sun Jan 15 22:23:41 2012 (r230176) @@ -200,7 +200,7 @@ critical_exit(void) if (td->td_critnest == 1) { td->td_critnest = 0; - if (td->td_owepreempt) { + if (td->td_owepreempt && !kdb_active) { td->td_critnest = 1; thread_lock(td); td->td_critnest--;