From owner-svn-src-projects@FreeBSD.ORG Mon Oct 29 13:08:36 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B77005BC; Mon, 29 Oct 2012 13:08:36 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id F38FB8FC18; Mon, 29 Oct 2012 13:08:34 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id b5so3873088lbd.13 for ; Mon, 29 Oct 2012 06:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+vpxegF2iwcip/x9xbohULpdd6f5Srz+LPOpjINksNE=; b=yWnkn4IC28gVXuu5aIlj+wewlGEfOz4+3YlI/NJ7GmmhxXyEwVNUzdo8nwmO3TpxGt 8NKN7MnBWMkQpxhmKPw4d54pj7aKiVXbEKgWDNPVSju0XZupjD8QcGK0/wBJLqLFyQFH tMcOV1MsXqVkbixjmBWRauSYBRx3vH4m26MPPAzEawylL3gTlA/mFbdte0oBsBiHPt1Q KNahCOJlNrcOGR5IBTRI17hquOZp+hrLGh5/nd3VBWeFb1+yRnQp51ahIAqzhH1yFz3t YPQ0aREBOO7yKk5+NWspX/EyYq0oqFYOz8p0+9LSXykDyQmYXWwny1ccoeYklUnRIEd4 BZfg== MIME-Version: 1.0 Received: by 10.112.98.37 with SMTP id ef5mr11987560lbb.84.1351516113934; Mon, 29 Oct 2012 06:08:33 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.112.30.37 with HTTP; Mon, 29 Oct 2012 06:08:33 -0700 (PDT) In-Reply-To: References: <201207301350.q6UDobCI099069@svn.freebsd.org> <201207301732.33474.jhb@freebsd.org> Date: Mon, 29 Oct 2012 13:08:33 +0000 X-Google-Sender-Auth: MW5XI83mZ7eiQpJIZiWYDY-ypc4 Message-ID: Subject: Re: svn commit: r238907 - projects/calloutng/sys/kern From: Attilio Rao To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: src-committers@freebsd.org, John Baldwin , Jeff Roberson , Florian Smeets , Bruce Evans , svn-src-projects@freebsd.org X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 13:08:36 -0000 On 10/29/12, Adrian Chadd wrote: > So colour me a bit silly, but why didn't you use an atomic here for > that single variable, rather than a memory barrier alone? Because it is not necessary? I just need that the compiler doesn't play silly, I don't need to add unnecessary bloating code to sched_pin()/unpin(). Attilio -- Peace can only be achieved by understanding - A. Einstein