Fix improper uses of smp_mb__{before,after}_atomic()
Get series with b4
b4 am 1556568902-12464-1-git-send-email-andrea.parri@amarulasolutions.comVersions newest first
- v1 Latest5 patches 20 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | drm/msm: Fix improper uses of smp_mb__{before,after}_atomic()drivers/ | +2 | 1 reply | |
| 2/5 | bio: fix improper use of smp_mb__before_atomic()include/ | +1 | 3 replies | |
| 3/5 | sbitmap: fix improper use of smp_mb__before_atomic()lib/ | +1 | 3 replies | |
| 4/5 | ceph: fix improper use of smp_mb__before_atomic()fs/ | +1 | 5 replies | |
| 5/5 | IB/hfi1: Fix improper uses of smp_mb__before_atomic()drivers/ | +3 | 6 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Ming Lei |
|---|---|
| 1/5 | |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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
[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