From owner-svn-src-head@freebsd.org Thu May 26 21:07:32 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E8C7B4BA5C; Thu, 26 May 2016 21:07:32 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 688101BEA; Thu, 26 May 2016 21:07:32 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id u4QL7UOg009283 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 May 2016 14:07:31 -0700 (PDT) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id u4QL7Ujs009282; Thu, 26 May 2016 14:07:30 -0700 (PDT) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 26 May 2016 14:07:30 -0700 From: Gleb Smirnoff To: Hans Petter Selasky Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r300489 - head/sys/kern Message-ID: <20160526210730.GH58287@FreeBSD.org> References: <201605231031.u4NAVspJ081312@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201605231031.u4NAVspJ081312@repo.freebsd.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 21:07:32 -0000 On Mon, May 23, 2016 at 10:31:54AM +0000, Hans Petter Selasky wrote: H> Author: hselasky H> Date: Mon May 23 10:31:54 2016 H> New Revision: 300489 H> URL: https://svnweb.freebsd.org/changeset/base/300489 H> H> Log: H> Use DELAY() instead of _sleep() when SCHEDULER_STOPPED() is set inside H> pause_sbt(). This allows pause() to continue working during a panic() H> which is not invoking KDB. This is useful when debugging graphics H> drivers using the LinuxKPI. H> H> Obtained from: kmacy @ H> MFC after: 1 week I wonder if this will help me with my freezes after panics in geom_mirror() and in mps(4), which I handled as similar patches to these drivers theirselves. Thanks! H> Modified: head/sys/kern/kern_synch.c H> ============================================================================== H> --- head/sys/kern/kern_synch.c Mon May 23 09:44:06 2016 (r300488) H> +++ head/sys/kern/kern_synch.c Mon May 23 10:31:54 2016 (r300489) H> @@ -327,7 +327,7 @@ pause_sbt(const char *wmesg, sbintime_t H> if (sbt == 0) H> sbt = tick_sbt; H> H> - if (cold || kdb_active) { H> + if (cold || kdb_active || SCHEDULER_STOPPED()) { H> /* H> * We delay one second at a time to avoid overflowing the H> * system specific DELAY() function(s): -- Totus tuus, Glebius.