Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4073521yba; Mon, 29 Apr 2019 13:16:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMyNIuzHu/8lYsLJ/HnxLvyML6XhmePxmaBbIbI9yxl6zEGdAYlRhfz1yFgC4qhrTtwv/f X-Received: by 2002:a17:902:a5cb:: with SMTP id t11mr35512792plq.268.1556569003483; Mon, 29 Apr 2019 13:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556569003; cv=none; d=google.com; s=arc-20160816; b=NcyVhbZMN+3nPC3Jc7MsGrX/12d5qX6R1gGEzjgOKb3230DsiXgw1rpZE+CLyyZV9+ uhMdnbcZOwJDsqKEO0kJp7mnsCD+E4d0mK76MkxoEfeeBh9mKisGmdarLddkwUzxIhQW i8bh7ZEa5MvpMpQ+Lmu2xZeodNKHLHgcxdVMFxW4SotWhu3ZiWlslgjf+8FZjMhDEgN2 livLf8xDo4MKTEI4eYrFAXvj1h4gyMx7q6UCEAcUY9EhvR9NWEk4WhLtrDumkyYTrvGL OpW0jDMFExZR9cW4IFxZv8DGlvyQZt1iK54zxKz+qgaJ1qjMKzfDs0Id+PIuTKNJgWd9 W/uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=qoPhwxCnRaVr9cai5wKe4b1V5A2KQPjXKSnDtAcDvUo=; b=MReaNuLQLP4qLkRvxDzs3cEOGppgH8hXtv7r4x9qjUOH+zpMf06NguO64PaCWC0GRv gIMDJCsNjinWwoJwkAv7Zp5TYR/CAljbxBjHOqxbxFsbJIilts+Hghm1thPkcQpiIAOR Eqz2DPxocjRjxr2TxZqjFr0DWtUP+t66e3gLFzBIbKtXi4AKfAVmHYZQc0gW4wcxUBTC iWtZPTEODB/yZXrZ2qvb67tJgSv7gQ7Yt9f6XT2zY97FM9IPepOAtRiC1PCcG/snSprj k2J3H7ZSX/Y5hFu1Jj4sGFs4mL2XRkIoqPMyOV2pLIjLWnto4OQvcciRi/fuQH4pVwNe Qhcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=P8OUdo8U; 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 v3si32813792plb.200.2019.04.29.13.16.28; Mon, 29 Apr 2019 13:16:43 -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=P8OUdo8U; 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 S1729383AbfD2UPY (ORCPT + 99 others); Mon, 29 Apr 2019 16:15:24 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36445 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729212AbfD2UPX (ORCPT ); Mon, 29 Apr 2019 16:15:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id o4so5942378wra.3 for ; Mon, 29 Apr 2019 13:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=qoPhwxCnRaVr9cai5wKe4b1V5A2KQPjXKSnDtAcDvUo=; b=P8OUdo8UPIv3zxfHb7pkxEwuxNptvaW5X7QI83j5Sg5C8rfUdp5KhQNmk23fo833N+ 2FpjkvpuEXtHdDsgQB9JrY1oP1ohtObD7wOkzhRt22jydxsbJX0/OJ/OqH5gC7GaIggy jGHirOkf88vdIIgrgkajIVIKNOG9UKmAlx7x8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qoPhwxCnRaVr9cai5wKe4b1V5A2KQPjXKSnDtAcDvUo=; b=i/+5Npdy+eCDMWk8PJPOBk8eFyJZwooJLXkBs6piZAJ41HXAW/vM1mbmOdj8tqM2Je OrxrBW6slAP5VgyaDdSt1fDi7P1r6TCBLoPycp7OzFgtKMn6y14vnF3i/1VqC5Ffg3c6 +S5aDsufggu8GFM4NxiT7En+s/8RUKNQrnMwNXZrTKJiGPgYFYpg9qp8Ri4kVJn/qPM1 ixvrpNPlLodvAJp/18ONOfJFavkNQCgAD5nL+yaJRy3gIlv/kYfQ2qPbrLR0yTS9sHB6 xobj38BhGavVQVvYi409m2UcgN3fdhO9dGeuyGvwyB67wAhmtkSz4yAfwS0qO23yh6Q3 Y4jA== X-Gm-Message-State: APjAAAUtlw2LHLq9SrYkqUafbxbLSLDp9A3slCV5yPTRj407+oC73zSp S4zDMhCnnwn8H67chyZQE/namTgj51o= X-Received: by 2002:adf:f102:: with SMTP id r2mr13780264wro.136.1556568921489; Mon, 29 Apr 2019 13:15:21 -0700 (PDT) Received: from localhost.localdomain (ip-93-97.sn2.clouditalia.com. [83.211.93.97]) by smtp.gmail.com with ESMTPSA id k6sm22864019wrd.20.2019.04.29.13.15.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Apr 2019 13:15:20 -0700 (PDT) From: Andrea Parri To: linux-kernel@vger.kernel.org Cc: Andrea Parri , "Paul E. McKenney" , Peter Zijlstra , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jordan Crouse , Jens Axboe , Omar Sandoval , "Yan, Zheng" , Sage Weil , Ilya Dryomov , Dennis Dalessandro , Mike Marciniszyn , Doug Ledford , Jason Gunthorpe Subject: [PATCH 0/5] Fix improper uses of smp_mb__{before,after}_atomic() Date: Mon, 29 Apr 2019 22:14:56 +0200 Message-Id: <1556568902-12464-1-git-send-email-andrea.parri@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! A relatively common misuse of these barriers is to apply these to operations which are not read-modify-write operations, such as atomic_set() and atomic_read(); examples were discussed in [1]. This series attempts to fix those uses by (conservatively) replacing the smp_mb__{before,after}_atomic() barriers with full memory barriers. Applies on 5.1-rc7. Thanks, Andrea Cc: "Paul E. McKenney" Cc: Peter Zijlstra Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Jordan Crouse Cc: Jens Axboe Cc: Omar Sandoval Cc: "Yan, Zheng" Cc: Sage Weil Cc: Ilya Dryomov Cc: Dennis Dalessandro Cc: Mike Marciniszyn Cc: Doug Ledford Cc: Jason Gunthorpe [1] http://lkml.kernel.org/r/20190420085440.GK14111@linux.ibm.com Andrea Parri (5): drm/msm: Fix improper uses of smp_mb__{before,after}_atomic() bio: fix improper use of smp_mb__before_atomic() sbitmap: fix improper use of smp_mb__before_atomic() ceph: fix improper use of smp_mb__before_atomic() IB/hfi1: Fix improper uses of smp_mb__before_atomic() drivers/gpu/drm/msm/adreno/a5xx_preempt.c | 4 ++-- drivers/infiniband/sw/rdmavt/qp.c | 6 +++--- fs/ceph/super.h | 2 +- include/linux/bio.h | 2 +- lib/sbitmap.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) -- 2.7.4