From owner-freebsd-arch@FreeBSD.ORG Thu Nov 13 03:48:49 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF3AFE35 for ; Thu, 13 Nov 2014 03:48:49 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B9BF6EA for ; Thu, 13 Nov 2014 03:48:49 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id n3so6918675wiv.8 for ; Wed, 12 Nov 2014 19:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=WmGCOkLotlShEycCdSC8TW4YbwmG5heyo4GcExjOQy4=; b=rW74BtqUuKsQNS5vDwp3OORBCTqL7kIe3MWurjMLKA7u35870lHq7zEAO+gKewGIzX 5Jjxhw/hruk3Z3uJoPaiQOB5w0lW6MtOAsOe3pqRkxnw8Z/cTSjARc/RtmEHg83/EDvB H7/wwwwRpNXYaEx2FfkC8iggp+1THwxE3bTzRhW6UEqOMN6JVu1/IPRguQtNvmg7VTVI FEav4x//68c4GgnE4lr+Vkjd66nEl79YeitBguLkJjiu5Vd/I9nU0NWBTrbnne77PWjF WyClIj4mBT1lbyzZbJ43i1Kvr79FBIeEuTN426JEYW84DfCORDpttFeHhF3j2HuXQmhR UJig== MIME-Version: 1.0 X-Received: by 10.180.99.105 with SMTP id ep9mr10686366wib.26.1415850527580; Wed, 12 Nov 2014 19:48:47 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Wed, 12 Nov 2014 19:48:47 -0800 (PST) In-Reply-To: References: <20141112212613.21037929@kan> Date: Wed, 12 Nov 2014 19:48:47 -0800 X-Google-Sender-Auth: HKYgmQIMzIreEQi9h6JX7TnL-EE Message-ID: Subject: Re: Questions about locking; turnstiles and sleeping threads From: Adrian Chadd To: Alexander Kabaev Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2014 03:48:49 -0000 kan pointed out that we should likely do a WITNESS_WARN() in the relevant spots in the callout code so we catch these before it happens. I'll see what we can add to -HEAD to be pro-active about it. Thanks, -adrian