Skip to content

bcache patches for Linux v5.12

Coly Li linux-bcache linux-block stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20bcache: consider the fragmentation when update the writeback ratedrivers/md/bcache/bcache.h drivers/md/bcache/sysfs.c drivers/md/bcache/writeback.c +1 more+73 -00 replies
2/20bcache: Fix register_device_aync typodrivers/md/bcache/super.c+2 -20 replies
3/20Revert "bcache: Kill btree_io_wq"drivers/md/bcache/bcache.h drivers/md/bcache/btree.c drivers/md/bcache/super.c+25 -20 replies
4/20bcache: Give btree_io_wq correct semantics againdrivers/md/bcache/btree.c+1 -10 replies
5/20bcache: Move journal work to new flush wqdrivers/md/bcache/bcache.h drivers/md/bcache/journal.c drivers/md/bcache/super.c+19 -20 replies
6/20bcache: Avoid comma separated statementsdrivers/md/bcache/bset.c drivers/md/bcache/sysfs.c+12 -60 replies
7/20bcache: add initial data structures for nvm pagesinclude/uapi/linux/bcache-nvm.h+195 -02 replies
8/20bcache: initialize the nvm pages allocatordrivers/md/bcache/Kconfig drivers/md/bcache/Makefile drivers/md/bcache/nvm-pages.c +3 more+506 -80 replies
9/20bcache: initialization of the buddydrivers/md/bcache/nvm-pages.c drivers/md/bcache/nvm-pages.h+78 -20 replies
10/20bcache: bch_nvm_alloc_pages() of the buddydrivers/md/bcache/nvm-pages.c drivers/md/bcache/nvm-pages.h+127 -00 replies
11/20bcache: bch_nvm_free_pages() of the buddydrivers/md/bcache/nvm-pages.c drivers/md/bcache/nvm-pages.h+138 -80 replies
12/20bcache: get allocated pages from specific ownerdrivers/md/bcache/nvm-pages.c drivers/md/bcache/nvm-pages.h+45 -00 replies
13/20bcache: persist owner info when alloc/free pages.drivers/md/bcache/nvm-pages.c+92 -10 replies
14/20bcache: use bucket index for SET_GC_MARK() in bch_btree_gc_finish()drivers/md/bcache/btree.c+4 -20 replies
15/20bcache: add BCH_FEATURE_INCOMPAT_NVDIMM_META into incompat feature setdrivers/md/bcache/features.h+9 -00 replies
16/20bcache: initialize bcache journal for NVDIMM meta devicedrivers/md/bcache/journal.c drivers/md/bcache/journal.h drivers/md/bcache/super.c+107 -80 replies
17/20bcache: support storing bcache journal into NVDIMM meta devicedrivers/md/bcache/journal.c+75 -361 reply
18/20bcache: read jset from NVDIMM pages for journal replaydrivers/md/bcache/journal.c+57 -240 replies
19/20bcache: add sysfs interface register_nvdimm_meta to register NVDIMM meta devicedrivers/md/bcache/super.c+29 -00 replies
20/20bcache: only initialize nvm-pages allocator when CONFIG_BCACHE_NVM_PAGES configureddrivers/md/bcache/super.c+4 -00 replies

Reviews trailers per patch

None of the 20 patches has a Reviewed-by or Acked-by.

PatchQiaowei Ren
1/20
2/20
3/20
4/20
5/20
6/20
7/20
8/20Co-authored-by
9/20Co-authored-by
10/20Co-authored-by
11/20Co-authored-by
12/20Co-authored-by
13/20Co-authored-by
14/20
15/20
16/20
17/20
18/20
19/20
20/20

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 00/20] bcache patches for Linux v5.12

Hi Jens,

This is the first wave bcache patches for Linux v5.12.

It is nice to see in this round we have 3 new patch contributors:
Jianpeng Ma, Qiaowei Ren and Kai Krakow.

In this series, the EXPERIMENTAL patches from Jianpeng Ma, Qiaowei Ren and me are initial effort to store bcache meta-data on NVDIMM namespace. The NVDIMM space is managed and mapped via DAX interface, and accessed by linear address. In this submission we store bcache journal on NVDIMM, in future bcache btree nodes and other meta data will be added in too, before we remove the EXPERIMENTAL statues.

Dongdong Tao contributes a performance optimization when bcache cache buckets are highly fregmented, Dongdong's patch makes the dirty data writeback faster and from his benchmark reprots such changes have recognized improvement for randome write I/O thoughput and latency for highly fregmented buckets, and no regression for regular I/O observed.

Kai Krakow contributes 4 patches to offload system_wq usage to separated btree_io_wq and bch_flush_wq. In his environment the daily backup job throughput increases from 60.2MB/s to 419MB/s and accomplished time reduced from 14h29m to 2h13m.

Joe Perches also contributes a fine code stype fix which I pick for this submission.

Please take them for Linux v5.12 merge window.

Thank you in advance.

Coly Li
---

Coly Li (8):
bcache: add initial data structures for nvm pages
bcache: use bucket index for SET_GC_MARK() in bch_btree_gc_finish()
bcache: add BCH_FEATURE_INCOMPAT_NVDIMM_META into incompat feature set
bcache: initialize bcache journal for NVDIMM meta device
bcache: support storing bcache journal into NVDIMM meta device
bcache: read jset from NVDIMM pages for journal replay
bcache: add sysfs interface register_nvdimm_meta to register NVDIMM
meta device
bcache: only initialize nvm-pages allocator when
CONFIG_BCACHE_NVM_PAGES configured

Jianpeng Ma (6):
bcache: initialize the nvm pages allocator
bcache: initialization of the buddy
bcache: bch_nvm_alloc_pages() of the buddy
bcache: bch_nvm_free_pages() of the buddy
bcache: get allocated pages from specific owner
bcache: persist owner info when alloc/free pages.

Joe Perches (1):
bcache: Avoid comma separated statements

Kai Krakow (4):
bcache: Fix register_device_aync typo Revert "bcache: Kill btree_io_wq"
bcache: Give btree_io_wq correct semantics again
bcache: Move journal work to new flush wq

dongdong tao (1):
bcache: consider the fragmentation when update the writeback rate

 drivers/md/bcache/Kconfig       |   6 +
 drivers/md/bcache/Makefile      |   2 +-
 drivers/md/bcache/bcache.h      |   7 +
 drivers/md/bcache/bset.c        |  12 +-
 drivers/md/bcache/btree.c       |  27 +-
 drivers/md/bcache/features.h    |   9 +
 drivers/md/bcache/journal.c     | 293 ++++++++---
 drivers/md/bcache/journal.h     |   2 +-
 drivers/md/bcache/nvm-pages.c   | 853 ++++++++++++++++++++++++++++++++
 drivers/md/bcache/nvm-pages.h   | 112 +++++
 drivers/md/bcache/super.c       |  76 ++-
 drivers/md/bcache/sysfs.c       |  29 +-
 drivers/md/bcache/writeback.c   |  42 ++
 drivers/md/bcache/writeback.h   |   4 +
 include/uapi/linux/bcache-nvm.h | 188 +++++++
 15 files changed, 1579 insertions(+), 83 deletions(-)
 create mode 100644 drivers/md/bcache/nvm-pages.c
 create mode 100644 drivers/md/bcache/nvm-pages.h
 create mode 100644 include/uapi/linux/bcache-nvm.h
Signature · 1 line
2.26.2