Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1301899yba; Thu, 9 May 2019 14:14:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu92vAcp48HJWERXrJxF+scL4QBpoVfepyQ22FN5HGx4Ch7CcoHbjCipbQVhAOku3RUrQL X-Received: by 2002:a63:3d0b:: with SMTP id k11mr8495789pga.349.1557436496885; Thu, 09 May 2019 14:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557436496; cv=none; d=google.com; s=arc-20160816; b=lxwu0UnG3xK0C4T00QpswsOs721Gt98qmAacwe2I8in42Iz1ZV2PmcG54y3A0w6VK/ qLbEclS+hHrFSeJpjR7fJjYjfuBCgzPLEACcC/hawrXrlu4oEs8korVKSfLxtfkSpemh rEchx4IsItf/Jf8lIaKDRpVI75ZJ2LiPULRzB4DH5ShO378cKy6N3JBG/ZXgh1xbZa8I vG7/beD4XJh9pzohUnpqrr4/Pe7C2NboBZ8dNWP4Ej1zGoPyxl0jSQAjmcWtckU6XuW+ kU6+j3gICgLP3tdxe4V/l7A/j6SZUDyGj2Lo7cmCX02N9AGZVJWsUzO+6dIZfxgM5zvy go5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZbRqqTjFs5tzEMVAU+7blChm+Y6s6n5IPp9aCMFKe+E=; b=ufn9oKa8ApKDhAmFUsvD0ZR/zhzdx90gi1pCtmr/uZs4LaScFHVds28tBgjyXnfrdh aW9zieEAmhxGeCoS0tx/7H3usAcor+uF3+nP44M9SraB7PDbxnZk1GMdm0C5lmzf+qnB Vf3L6jRIcVXdCFOVsltNEN7QsaCKyYZOZGDZp6YbmgBVPL13+isUMjf4UOvR8+gWTOKr Y0P5052wARxBL95zEJel0dL8Jjs59h2cqLUIQcHg806Xomvbq9VtF6PivNFQM9uve8Ow uPC/z0GjJMGvb34zJtI22W+ZbU/aWvzIInZmQyKbR0On4MU3qDb9R9WC1Wu0F/CfPGjU bCRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Q4FuJCkP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si4751611pgh.393.2019.05.09.14.14.40; Thu, 09 May 2019 14:14:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Q4FuJCkP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727037AbfEIVMb (ORCPT + 99 others); Thu, 9 May 2019 17:12:31 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34414 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbfEIVMa (ORCPT ); Thu, 9 May 2019 17:12:30 -0400 Received: by mail-wr1-f67.google.com with SMTP id f7so4960327wrq.1 for ; Thu, 09 May 2019 14:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZbRqqTjFs5tzEMVAU+7blChm+Y6s6n5IPp9aCMFKe+E=; b=Q4FuJCkPtO06kar0ftxSdZvXt+6xzU1bjhcMqjXqM67bvJmecuLczOYD8s9xc3P9OP uYGmr2xqNFbW7JxQEtTp37dJQBLpFBeAp6boNlAJ7rgnK0vL18Qa8wyCu5xlbRrqZje8 NgUOzxtmqZSgHe0IHEwqCGfnPHEoWrIE2+RNQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZbRqqTjFs5tzEMVAU+7blChm+Y6s6n5IPp9aCMFKe+E=; b=R/xpUm3gnhaYDMvVYespZleWVD3RIBuf0mPRg0JzlNdKh8NdL8poibeQx1wmKM0zxf ugSq2vIlPk8S880ejE9Gq1B9Z7Qik0Np31GlZDV2wslowoZqs/+N8asSd0nFKLGxFX7L SBAbn4Sv4hWFoJV6lxkfrT+KbbbRJ5xkr7nf8LTEAoNCYoTj4Eph50RRhQ7+Um+eVQA0 EDVQvf8kPCHXPjGTLv62ef2xwnfrcswFn/9vJxDOyk0BAZR0LL7znzvrZOQRk5lsK526 9zVrVyNJ5f+NM2Dat2W+R0t8QGnCAPfw1kxGxTkPz/eP09yVayrKq05zyOC8Fy0WMvIm dyzA== X-Gm-Message-State: APjAAAVQvPqAP5Hob1y+s4jUr/w0GYumIP8YkI5RNTWbJUnN+tBHp9Xl NJMncgd95wWwLCHhqsXl2cbRpg== X-Received: by 2002:adf:e690:: with SMTP id r16mr4592916wrm.193.1557436349141; Thu, 09 May 2019 14:12:29 -0700 (PDT) Received: from andrea ([91.252.228.170]) by smtp.gmail.com with ESMTPSA id r2sm6339087wrr.65.2019.05.09.14.12.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 14:12:28 -0700 (PDT) Date: Thu, 9 May 2019 23:12:21 +0200 From: Andrea Parri To: "Ruhl, Michael J" Cc: "linux-kernel@vger.kernel.org" , "Dalessandro, Dennis" , "Marciniszyn, Mike" , Doug Ledford , Jason Gunthorpe , "linux-rdma@vger.kernel.org" , "Paul E. McKenney" , Peter Zijlstra Subject: Re: [PATCH 5/5] IB/hfi1: Fix improper uses of smp_mb__before_atomic() Message-ID: <20190509211221.GA4966@andrea> References: <1556568902-12464-1-git-send-email-andrea.parri@amarulasolutions.com> <1556568902-12464-6-git-send-email-andrea.parri@amarulasolutions.com> <14063C7AD467DE4B82DEDB5C278E8663BE6AADCE@FMSMSX108.amr.corp.intel.com> <20190429231657.GA2733@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190429231657.GA2733@andrea> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 01:16:57AM +0200, Andrea Parri wrote: > Hi Mike, > > > >This barrier only applies to the read-modify-write operations; in > > >particular, it does not apply to the atomic_read() primitive. > > > > > >Replace the barrier with an smp_mb(). > > > > This is one of a couple of barrier issues that we are currently looking into. > > > > See: > > > > [PATCH for-next 6/9] IB/rdmavt: Add new completion inline > > > > We will take a look at this one as well. > > Thank you for the reference and for looking into this, So, I'm planning to just drop this patch; or can I do something to help? Please let me know. Thanx, Andrea > > Andrea