From: "Jan Beulich" Subject: Re: [RFC PATCH v1 1/5] tasklet: Introduce per-cpu tasklet for softirq. Date: Thu, 28 Aug 2014 09:17:28 +0100 Message-ID: <53FF01B8020000780002E8AF@mail.emea.novell.com> References: <1409162329-6094-1-git-send-email-konrad.wilk@oracle.com> <1409162329-6094-2-git-send-email-konrad.wilk@oracle.com> <53FE2922.7000108@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XMutd-00061N-W8 for xen-devel@lists.xenproject.org; Thu, 28 Aug 2014 08:17:30 +0000 In-Reply-To: <53FE2922.7000108@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel@lists.xenproject.org, keir@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 27.08.14 at 20:53, wrote: > On 27/08/14 18:58, Konrad Rzeszutek Wilk wrote: >> +static inline void tasklet_unlock(struct tasklet *t) >> +{ >> + barrier(); > > clear_bit() has a memory clobber. This barrier() is entirely redundant. I think this just is an implementation artifact of clear_bit(), and hence user shouldn't rely on that behavior. Jan