From owner-freebsd-arch@FreeBSD.ORG Thu Nov 13 07:25:15 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 53DCC9B7 for ; Thu, 13 Nov 2014 07:25:15 +0000 (UTC) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (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 D6DD7C2E for ; Thu, 13 Nov 2014 07:25:14 +0000 (UTC) Received: by mail-wi0-f173.google.com with SMTP id n3so7290971wiv.6 for ; Wed, 12 Nov 2014 23:25:13 -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=CmHB52tcThdH8ZYPIsIa4DeBZR7WGLtoDfnDYWd2AM8=; b=c0PUPwXNm8fht16rCZa8t4F3VurLpf53Lbl4+LLGIJCkYp8ciLhBX8el7V6x5yoGAd XYOmbB1PRhi1PkJ1bcnff9EXwlHw1yDzWOa7FKciiN4cS3VkiDsQYv/PWEspHIZsSijg YJe/ED66Q0WjzMhCPOVme+gInWSy/QogrkR06RPInNaD46LxtUOvgnX/hmQ0PpI89/ow f9dVyt0Bd8X9B8qa5AEZgTqmtwsV5/Hjupp8SNniyUhg9N/5w5Hm6HF94AL7x9A96Iu+ wDY9SA8y/GkNFSypgi3t38qTVAlGZbFaJOAugALaK/BBwmoDiwtL5CAbW3lEmLHDCdEX YSKA== MIME-Version: 1.0 X-Received: by 10.180.108.35 with SMTP id hh3mr981404wib.59.1415863513337; Wed, 12 Nov 2014 23:25:13 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Wed, 12 Nov 2014 23:25:13 -0800 (PST) In-Reply-To: References: <20141112212613.21037929@kan> Date: Wed, 12 Nov 2014 23:25:13 -0800 X-Google-Sender-Auth: cO4_loOEFi56lfZWfqrHPIc-k6c 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 07:25:15 -0000 On 12 November 2014 19:48, Adrian Chadd wrote: > 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. Amusingly, I tried adding it and it made my laptop turn to soup very quickly - among other things, the TCP timer callouts are all setup with non sleep locks held. -adrian