Skip to content

Fix improper uses of smp_mb__{before,after}_atomic()

Andrea Parri ceph-devel dri-devel linux-arm-msm linux-block linux-rdma lkml stable 1 version In review

Get series with b4
b4 am 1556568902-12464-1-git-send-email-andrea.parri@amarulasolutions.com

Versions newest first

  1. v1 Latest5 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/msm: Fix improper uses of smp_mb__{before,after}_atomic()drivers/gpu/drm/msm/adreno/a5xx_preempt.c+2 -21 reply
2/5bio: fix improper use of smp_mb__before_atomic()include/linux/bio.h+1 -13 replies
3/5sbitmap: fix improper use of smp_mb__before_atomic()lib/sbitmap.c+1 -13 replies
4/5ceph: fix improper use of smp_mb__before_atomic()fs/ceph/super.h+1 -15 replies
5/5IB/hfi1: Fix improper uses of smp_mb__before_atomic()drivers/infiniband/sw/rdmavt/qp.c+3 -36 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchMing Lei
1/5
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Fix improper uses of smp_mb__{before,after}_atomic()

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" <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rob Clark <[email protected]>
Cc Sean Paul <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Jordan Crouse <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Omar Sandoval <[email protected]>
Cc "Yan, Zheng" <[email protected]>
Cc Sage Weil <[email protected]>
Cc Ilya Dryomov <[email protected]>
Cc Dennis Dalessandro <[email protected]>
Cc Mike Marciniszyn <[email protected]>
Cc Doug Ledford <[email protected]>
Cc Jason Gunthorpe <[email protected]>

[1] http://lkml.kernel.org/r/[email protected]

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(-)
Signature · 1 line
2.7.4