Skip to content

bcache patches for Linux v5.2

Coly Li linux-bcache linux-block stable 1 version Applied

Status from this message: Applied, thanks Coly.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/18bcache: fix crashes stopping bcache device before read miss donedrivers/md/bcache/request.c+21 -50 replies
2/18bcache: fix inaccurate result of unused bucketsdrivers/md/bcache/sysfs.c+0 -20 replies
3/18bcache: avoid clang -Wunintialized warningdrivers/md/bcache/alloc.c+3 -20 replies
4/18bcache: use kmemdup_nul for CACHED_LABEL bufferdrivers/md/bcache/super.c+4 -60 replies
5/18bcache: Clean up bch_get_congested()drivers/md/bcache/request.c drivers/md/bcache/request.h drivers/md/bcache/util.h+28 -150 replies
6/18bcache: fix a race between cache register and cacheset unregisterdrivers/md/bcache/super.c+1 -10 replies
7/18bcache: move definition of 'int ret' out of macro read_bucket()drivers/md/bcache/journal.c+3 -20 replies
8/18bcache: never set KEY_PTRS of jouranl key to 0 in journal_reclaim()drivers/md/bcache/journal.c+7 -40 replies
9/18bcache: add failure check to run_cache_set() for journal replaydrivers/md/bcache/super.c+12 -51 reply
10/18bcache: add comments for kobj release callback routinedrivers/md/bcache/super.c+4 -00 replies
11/18bcache: return error immediately in bch_journal_replay()drivers/md/bcache/journal.c+6 -30 replies
12/18bcache: add error check for calling register_bdev()drivers/md/bcache/super.c+10 -60 replies
13/18bcache: Add comments for blkdev_put() in registration code pathdrivers/md/bcache/super.c+8 -00 replies
14/18bcache: add comments for closure_fn to be called in closure_queue()drivers/md/bcache/super.c+6 -00 replies
15/18bcache: improve bcache_reboot()drivers/md/bcache/super.c+10 -20 replies
16/18bcache: fix failure in journal relplaydrivers/md/bcache/journal.c+21 -40 replies
17/18bcache: fix wrong usage use-after-freed on keylist in out_nocoalesce branch of btree_gc_coalescedrivers/md/bcache/btree.c+1 -10 replies
18/18bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_setdrivers/md/bcache/super.c+8 -00 replies

Reviews trailers per patch

10 of 18 patches have a Reviewed-by or Acked-by.

PatchHannes ReineckeNathan ChancellorChaitanya KulkarniDennis Schridde
1/18
2/18
3/18R-b
4/18
5/18
6/18
7/18R-b
8/18R-b
9/18R-b
10/18R-b R-b
11/18R-b
12/18R-b
13/18R-b R-b
14/18R-b R-b
15/18R-b
16/18T-b
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/18] bcache patches for Linux v5.2

Hi Jens,

Here are the bcache patches for Linux v5.2.

Most of the patches are bug fixes. We don't introduce new feature in this run, people continue to focus on code quality improvement for now.

Juhui Tang and I make some fixes related to bcache journal, the changes include,
- Fix KEY_PTRS set to 0 error under very heavy small I/O pressure, to avoid potential missing for journal and uuid update to cache device.
- Add code comments to make code more understandable.
- Minor code cleanup.

Liang Chen, Guoju Fang and Shenghui Wang contribute useful and important fixes for,
- Avoid a crash in cached_dev_read_done() by adding reference before calling bio_complete()
- Improve unused buckets statistic
- Fix a race between cache register and unregister
- Potential use-after-free and memory leak bugs

Arnd Bergmann and George Spelvin also contriubte useful code clean up to fix clang warning and make bch_get_congested() more clear.

Please pick them for the 5.2 merge window.

Thanks you in advance.

Coly Li
---

Arnd Bergmann (1):
bcache: avoid clang -Wunintialized warning

Coly Li (9):
bcache: move definition of 'int ret' out of macro read_bucket()
bcache: never set KEY_PTRS of jouranl key to 0 in journal_reclaim()
bcache: add failure check to run_cache_set() for journal replay
bcache: add comments for kobj release callback routine
bcache: return error immediately in bch_journal_replay()
bcache: add error check for calling register_bdev()
bcache: Add comments for blkdev_put() in registration code path
bcache: add comments for closure_fn to be called in closure_queue()
bcache: improve bcache_reboot()

Geliang Tang (1):
bcache: use kmemdup_nul for CACHED_LABEL buffer

George Spelvin (1):
bcache: Clean up bch_get_congested()

Guoju Fang (2):
bcache: fix crashes stopping bcache device before read miss done
bcache: fix inaccurate result of unused buckets

Liang Chen (1):
bcache: fix a race between cache register and cacheset unregister

Shenghui Wang (2):
bcache: fix wrong usage use-after-freed on keylist in out_nocoalesce
branch of btree_gc_coalesce
bcache: avoid potential memleak of list of journal_replay(s) in the
CACHE_SYNC branch of run_cache_set

Tang Junhui (1):
bcache: fix failure in journal relplay

 drivers/md/bcache/alloc.c   |  5 +--
 drivers/md/bcache/btree.c   |  2 +-
 drivers/md/bcache/journal.c | 42 ++++++++++++++++++-----
 drivers/md/bcache/request.c | 41 +++++++++++++++-------
 drivers/md/bcache/request.h |  2 +-
 drivers/md/bcache/super.c   | 83 ++++++++++++++++++++++++++++++++++-----------
 drivers/md/bcache/sysfs.c   |  2 --
 drivers/md/bcache/util.h    | 26 ++++++++++----
 8 files changed, 149 insertions(+), 54 deletions(-)
Signature · 1 line
2.16.4