From owner-svn-src-projects@FreeBSD.ORG Mon Oct 29 02:25:34 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 5C270E65; Mon, 29 Oct 2012 02:25:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-da0-f54.google.com (mail-da0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id F084E8FC0A; Mon, 29 Oct 2012 02:25:33 +0000 (UTC) Received: by mail-da0-f54.google.com with SMTP id z9so2247009dad.13 for ; Sun, 28 Oct 2012 19:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=+rUcJY2oH4GFyabHzFaIOw5VrW1G+c3Y3XUHMM5slAE=; b=rZrW0XsN75h2gwyYjIycf2MGdOhjX/fWsXxcTmIfMNreg7wdOJm9DKEo+vJ9/mJw8i WhYvTWBWwRqwOgRYRhr54kXIuHgKaazulfRQPTCv0P9QlibJ9OWnCbu8BiFgJiJ5qpww 67McX+j6ZDFL7VQKLfJgMQXpp7NdeTcd/C1RInOGzj/T8Y87qhLA1fWnmMKhxRqSfW8p fVV/jofT+JHVBaiZ5FEaZ5tMrVjDeLZu4gTSLmxBLGh/6O7AXP7Py/pvjk7FxCfLeM17 3ufHWepbyUFXaX72x62QOn67ULrmfWhwudlLWeWbrJ+D3pCZm7XGQyXmh4+AnaYdYzE0 oK6Q== MIME-Version: 1.0 Received: by 10.68.218.226 with SMTP id pj2mr89581657pbc.33.1351477533413; Sun, 28 Oct 2012 19:25:33 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.146.233 with HTTP; Sun, 28 Oct 2012 19:25:33 -0700 (PDT) In-Reply-To: References: <201207301350.q6UDobCI099069@svn.freebsd.org> <201207301732.33474.jhb@freebsd.org> Date: Sun, 28 Oct 2012 19:25:33 -0700 X-Google-Sender-Auth: oRUnrrkA3OG1Q_mrw9UeMK-G_fo Message-ID: Subject: Re: svn commit: r238907 - projects/calloutng/sys/kern From: Adrian Chadd To: attilio@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 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 02:25:34 -0000 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? I feel slightly nitpicky about it, but this stuff rubs me up slightly the wrong way, same as the "don't worry about using atomics for 32 bit set/reads, as those are guaranteed to be atomic on all of the platforms we use" done what, last year or so. Thanks, Adrian