Skip to content

Optimize writecache when using pmem as cache

Huaisheng Ye dm-devel linux-doc linux-nvdimm lkml nvdimm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 2 repliesIn review
  2. v2 RFC4 patches 0 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- seq_count is important for flush operations, output it within status for debugging and analyzing code behavior.
[1]: https://lkml.org/lkml/2019/1/3/43
[2]: https://lkml.org/lkml/2019/1/9/6

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dm-writecache: remove unused size to writecache_flush_regiondrivers/md/dm-writecache.c+6 -60 replies
2/5dm-writecache: get rid of memory_data flush to writecache_flush_entrydrivers/md/dm-writecache.c+0 -20 replies
3/5dm-writecache: expand pmem_reinit for struct dm_writecachedrivers/md/dm-writecache.c+6 -10 replies
4/5Documentation/device-mapper: add optional parameter reinitDocumentation/device-mapper/writecache.txt+4 -00 replies
5/5dm-writecache: output seq_count within statusdrivers/md/dm-writecache.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/5] Optimize writecache when using pmem as cache

From: Huaisheng Ye <[email protected]>

This patch set could be used for dm-writecache when use persistent memory as cache data device.

Patch 1 and 2 go towards removing unused parameter and codes which actually doesn't really work.

Patch 3 and 4 are targeted at solving problem fn ctr failed to work due to invalid magic or version, which is caused by the super block of pmem has messy data stored.

Patch 5 is used for getting the status of seq_count.

Changes Since v2:
- seq_count is important for flush operations, output it within status for debugging and analyzing code behavior.
[1]: https://lkml.org/lkml/2019/1/3/43
[2]: https://lkml.org/lkml/2019/1/9/6

Huaisheng Ye (5):
dm-writecache: remove unused size to writecache_flush_region
dm-writecache: get rid of memory_data flush to writecache_flush_entry
dm-writecache: expand pmem_reinit for struct dm_writecache Documentation/device-mapper: add optional parameter reinit
dm-writecache: output seq_count within status

 Documentation/device-mapper/writecache.txt |  4 ++++
 drivers/md/dm-writecache.c                 | 23 +++++++++++++----------
 2 files changed, 17 insertions(+), 10 deletions(-)
Signature · 1 line
1.8.3.1