Skip to content

dm-pcache: built-in support and metadata hardening

Li Chen dm-devel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dm-pcache: allow built-in build and rename flush helperdrivers/md/dm-pcache/Makefile drivers/md/dm-pcache/cache.c drivers/md/dm-pcache/cache.h +1 more+6 -61 reply
2/3dm-pcache: reuse meta_addr in pcache_meta_find_latestdrivers/md/dm-pcache/pcache_internal.h+1 -11 reply
3/3dm-pcache: zero cache_info before default initdrivers/md/dm-pcache/cache.c+1 -12 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchZheng Gu
1/3
2/3
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] dm-pcache: built-in support and metadata hardening

From: Li Chen <[email protected]>

This three-patch series tidies dm-pcache’s build glue and tightens the metadata scan.

Patch 1 allow dm-pcache to be linked into vmlinux and avoids clashing with the sunrpc cache_flush() by using obj-$(CONFIG_DM_PCACHE) and renaming the helper across the tree.

Patch 2 drops a redundant recomputation of the metadata slot pointer while walking headers.

Patch 3 Ensure dm-pcache initializes cache_info from a zeroed state so metadata CRC failures can’t leak stale flags into the new-cache path.

Thanks for your review.

Li Chen (3):
dm-pcache: allow built-in build and rename flush helper
dm-pcache: reuse meta_addr in pcache_meta_find_latest
dm-pcache: zero cache_info before default init

 drivers/md/dm-pcache/Makefile          | 2 +-
 drivers/md/dm-pcache/cache.c           | 4 ++--
 drivers/md/dm-pcache/cache.h           | 2 +-
 drivers/md/dm-pcache/cache_req.c       | 6 +++---
 drivers/md/dm-pcache/pcache_internal.h | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.51.0