Skip to content

cxl/core: Hold region_rwsem during poison ops

[email protected] linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl/core: Always hold region_rwsem while reading poison listsdrivers/cxl/core/memdev.c drivers/cxl/core/region.c+8 -63 replies
2/2cxl/memdev: Hold region_rwsem during inject and clear poison opsdrivers/cxl/core/memdev.c+16 -22 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDave JiangDavidlohr Bueso
1/2R-b R-b
2/2R-b R-b

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/2] cxl/core: Hold region_rwsem during poison ops

From: Alison Schofield <[email protected]>

This work was previously posted as a single patch [1] and is reposted here split into 2 patches. The first patch fixes up the poison list and the second patch the poison inject and clear.

They both are cleaning up locking issues exposed by:
Commit 458ba8189cb4 ("cxl: Add cxl_decoders_committed() helper") added a lockdep_assert_held() to make sure all callers hold the region state stable while doing work that depends on the number of committed decoders.

Changes since that single patch posting:
- Put back the _interruptible() on down_reads (DavidLohr, Dan)
- Split into 2 patches (Dan)
- Add impact statements in commit logs (Dan)

[1] https://lore.kernel.org/linux-cxl/[email protected]/

Alison Schofield (2):
cxl/core: Always hold region_rwsem while reading poison lists cxl/memdev: Hold region_rwsem during inject and clear poison ops

 drivers/cxl/core/memdev.c | 27 ++++++++++++++++++++++++---
 drivers/cxl/core/region.c |  5 -----
 2 files changed, 24 insertions(+), 8 deletions(-)

base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86

Signature · 1 line
2.37.3