From owner-svn-src-all@freebsd.org Fri Feb 17 09:58:47 2017 Return-Path: Delivered-To: svn-src-all@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 0C773CE232C; Fri, 17 Feb 2017 09:58:47 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A87691A99; Fri, 17 Feb 2017 09:58:46 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id r18so1630574wmd.3; Fri, 17 Feb 2017 01:58:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+galaawpgETV/ZbSMRMZK8u/NAfo+Td/2nvdZ7gtdqQ=; b=FsH+/5v2cZogrU+p+cbqR5VxS5oL6u/hnLCF1s91bfIiPJwYvVDlNRTssZCzn/2OUE t5T15Ycd5gxjj7wNRH6QNVqIBfHH4NxqemoTI0AWYjGParvy9r7JNPgpFqdURDHNil0A +Z/JlpM2tIjVFnWOk8Cwr5pEvMT1082J+BOEaR/pOHjGnKGcdvdKFbJPjhWO45UO5f+o ckFFLpn8iAjSruBPV5lP7yT/6l6fUvUxznRtVMcC0IE7gQ0u+6MB0Xoqe7+tX/7AxgHr IHuotBCmClWhbzus+CFmr2sddkpPqOs3i+YIBf/EOQpYYUi30r8USTGxIBPxYFwrFp/M 25jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+galaawpgETV/ZbSMRMZK8u/NAfo+Td/2nvdZ7gtdqQ=; b=n/B8CDgWG5GPsRrUHQIgx5ZyhEMOyN+VtUtR44FCmsD/1pCqNPQ5/F7TDKN4Pm83F/ Oeyp0L17Sc8hajVLZnuTxZBor8cXSn4g82mZ9slu4tw8yN7dkaEZRPS1/Oll7dijM3+B j3o5TPQ9sfqLm8aEm1ID+ZFjBoiawa84YPL/LvIOvjRD5jbTc/lbKeurtisb/bkmagWk 7yYI32Kk5iYGUu7F622HKOWqdB6A8W5GLT9rWstMCZAEjzDvR2/NKxs8+4f0MoKki+4n 2JyD/b/G+PEU87ankPlW60A3eiNEXCqp0agR+nUi6LvRZfATl2/u5qym9Kh5wdklyyo0 pNzA== X-Gm-Message-State: AMke39mPFFePaF16xNeGpCZJJ506qvenO8eWNiJlEp1slxU8OEtcDB0uUUfAm7BgSaIBTQ== X-Received: by 10.28.136.13 with SMTP id k13mr1402638wmd.94.1487325524589; Fri, 17 Feb 2017 01:58:44 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by smtp.gmail.com with ESMTPSA id u42sm12306964wrc.1.2017.02.17.01.58.43 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 17 Feb 2017 01:58:43 -0800 (PST) Date: Fri, 17 Feb 2017 10:58:41 +0100 From: Mateusz Guzik To: Hans Petter Selasky Cc: Mateusz Guzik , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r313859 - in head/sys: kern sys Message-ID: <20170217095841.GB30217@dft-labs.eu> References: <201702170645.v1H6j4l6060548@repo.freebsd.org> <2c01557a-3412-8b46-ef4d-77214566b74a@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2c01557a-3412-8b46-ef4d-77214566b74a@selasky.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2017 09:58:47 -0000 On Fri, Feb 17, 2017 at 10:08:27AM +0100, Hans Petter Selasky wrote: > On 02/17/17 07:45, Mateusz Guzik wrote: > >Author: mjg > >Date: Fri Feb 17 06:45:04 2017 > >New Revision: 313859 > >URL: https://svnweb.freebsd.org/changeset/base/313859 > > > >Log: > > Introduce SCHEDULER_STOPPED_TD for use when the thread pointer was already read > > > > Do these checks also cover panics? Or only shutdown? > > Should you also add a check for kdb_active // panicstr ? Then I could > factor out some checks I've sprinkled in the USB code. > These are specifically for panics. I don't plan to add other macros, just needded this for further refactoring of locking primitives. -- Mateusz Guzik