Skip to content

bcache patches for Linux v5.3

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

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest37 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/37bcache: don't set max writeback rate if gc is runningdrivers/md/bcache/writeback.c+3 -00 replies
2/37bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()drivers/md/bcache/super.c+1 -10 replies
3/37bcache: fix return value error in bch_journal_read()drivers/md/bcache/journal.c+1 -10 replies
4/37Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"drivers/md/bcache/super.c+0 -170 replies
5/37bcache: avoid flushing btree node in cache_set_flush() if io disableddrivers/md/bcache/super.c+11 -70 replies
6/37bcache: ignore read-ahead request failure on backing devicedrivers/md/bcache/io.c+12 -00 replies
7/37bcache: add io error counting in write_bdev_super_endio()drivers/md/bcache/super.c+3 -10 replies
8/37bcache: remove unnecessary prefetch() in bset_search_tree()drivers/md/bcache/bset.c+2 -140 replies
9/37bcache: use sysfs_match_string() instead of __sysfs_match_string()drivers/md/bcache/sysfs.c+8 -120 replies
10/37bcache: add return value check to bch_cached_dev_run()drivers/md/bcache/bcache.h drivers/md/bcache/super.c drivers/md/bcache/sysfs.c+32 -100 replies
11/37bcache: remove unncessary code in bch_btree_keys_init()drivers/md/bcache/bset.c drivers/md/bcache/btree.c+10 -90 replies
12/37bcache: check CACHE_SET_IO_DISABLE in allocator codedrivers/md/bcache/alloc.c+9 -00 replies
13/37bcache: check CACHE_SET_IO_DISABLE bit in bch_journal()drivers/md/bcache/journal.c+4 -00 replies
14/37bcache: more detailed error message to bcache_device_link()drivers/md/bcache/super.c+8 -30 replies
15/37bcache: add more error message in bch_cached_dev_attach()drivers/md/bcache/super.c+4 -00 replies
16/37bcache: improve error message in bch_cached_dev_run()drivers/md/bcache/super.c+7 -20 replies
17/37bcache: remove "XXX:" comment line from run_cache_set()drivers/md/bcache/super.c+1 -10 replies
18/37bcache: make bset_search_tree() be more understandabledrivers/md/bcache/bset.c+11 -190 replies
19/37bcache: add pendings_cleanup to stop pending bcache devicedrivers/md/bcache/super.c+55 -00 replies
20/37bcache: fix mistaken sysfs entry for io_error counterdrivers/md/bcache/sysfs.c+2 -20 replies
21/37bcache: destroy dc->writeback_write_wq if failed to create dc->writeback_threaddrivers/md/bcache/writeback.c+1 -00 replies
22/37bcache: stop writeback kthread and kworker when bch_cached_dev_run() faileddrivers/md/bcache/super.c+8 -00 replies
23/37bcache: avoid a deadlock in bcache_reboot()drivers/md/bcache/super.c drivers/md/bcache/sysfs.c+65 -10 replies
24/37bcache: acquire bch_register_lock later in cached_dev_detach_finish()drivers/md/bcache/super.c+2 -10 replies
25/37bcache: acquire bch_register_lock later in cached_dev_free()drivers/md/bcache/super.c+2 -20 replies
26/37bcache: fix potential deadlock in cached_def_free()drivers/md/bcache/super.c drivers/md/bcache/writeback.c+4 -20 replies
27/37bcache: add code comments for journal_read_bucket()drivers/md/bcache/journal.c+24 -00 replies
28/37bcache: set largest seq to ja->seq[bucket_index] in journal_read_bucket()drivers/md/bcache/journal.c+2 -10 replies
29/37bcache: shrink btree node cache after bch_btree_check()drivers/md/bcache/super.c+17 -00 replies
30/37bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free"drivers/md/bcache/journal.c+0 -10 replies
31/37bcache: Revert "bcache: fix high CPU occupancy during journal"drivers/md/bcache/bcache.h drivers/md/bcache/journal.c drivers/md/bcache/util.h+15 -360 replies
32/37bcache: only clear BTREE_NODE_dirty bit when it is setdrivers/md/bcache/btree.c+6 -50 replies
33/37bcache: add comments for mutex_lock(&b->write_lock)drivers/md/bcache/btree.c+10 -00 replies
34/37bcache: remove retry_flush_write from struct cache_setdrivers/md/bcache/bcache.h drivers/md/bcache/journal.c drivers/md/bcache/sysfs.c+0 -70 replies
35/37bcache: fix race in btree_flush_write()drivers/md/bcache/btree.c drivers/md/bcache/btree.h drivers/md/bcache/journal.c+36 -10 replies
36/37bcache: performance improvement for btree_flush_write()drivers/md/bcache/journal.c drivers/md/bcache/journal.h+67 -220 replies
37/37bcache: add reclaimed_journal_buckets to struct cache_setdrivers/md/bcache/bcache.h drivers/md/bcache/journal.c drivers/md/bcache/sysfs.c+7 -00 replies

Reviews trailers per patch

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

PatchThorsten Knabekbuild test robot
1/37
2/37
3/37
4/37
5/37
6/37Suggested-and-tested-by
7/37
8/37
9/37
10/37
11/37
12/37
13/37
14/37
15/37
16/37
17/37
18/37
19/37
20/37
21/37
22/37
23/37
24/37
25/37
26/37
27/37
28/37
29/37
30/37
31/37
32/37
33/37
34/37
35/37Reported-and-tested-by
36/37
37/37

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/37] bcache patches for Linux v5.3

Hi Jens,

Here are the bcache patches for Linux v5.3. All these patches are tested for a while and survived from my smoking and pressure testings.

This run we have Alexandru Ardelean contributes a clean up patch. The rested patches are from me, there is an important race fix has the following patches involved in,
- bcache: Revert "bcache: free heap cache_set->flush_btree in bch_journal_free"
- bcache: Revert "bcache: fix high CPU occupancy during journal"
- bcache: remove retry_flush_write from struct cache_set
- bcache: fix race in btree_flush_write()
- bcache: performance improvement for btree_flush_write()
- bcache: add reclaimed_journal_buckets to struct cache_set On a Lenovo SR650 server (48 cores, 200G dram, 1T NVMe SSD as cache device and 12T NVMe SSD as backing device), without this fix, bcache can only run 40 around minutes before deadlock or panic happens. Now I don't observe any deadlock or panic for 5+ hours smoking test.

Please pick them for Linux v5.3, and thank you in advance.

Coly Li
---

Alexandru Ardelean (1):
bcache: use sysfs_match_string() instead of __sysfs_match_string()

Coly Li (36):
bcache: don't set max writeback rate if gc is running
bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()
bcache: fix return value error in bch_journal_read() Revert "bcache: set CACHE_SET_IO_DISABLE in bch_cached_dev_error()"
bcache: avoid flushing btree node in cache_set_flush() if io disabled
bcache: ignore read-ahead request failure on backing device
bcache: add io error counting in write_bdev_super_endio()
bcache: remove unnecessary prefetch() in bset_search_tree()
bcache: add return value check to bch_cached_dev_run()
bcache: remove unncessary code in bch_btree_keys_init()
bcache: check CACHE_SET_IO_DISABLE in allocator code
bcache: check CACHE_SET_IO_DISABLE bit in bch_journal()
bcache: more detailed error message to bcache_device_link()
bcache: add more error message in bch_cached_dev_attach()
bcache: improve error message in bch_cached_dev_run()
bcache: remove "XXX:" comment line from run_cache_set()
bcache: make bset_search_tree() be more understandable
bcache: add pendings_cleanup to stop pending bcache device
bcache: fix mistaken sysfs entry for io_error counter
bcache: destroy dc->writeback_write_wq if failed to create

    dc->writeback_thread

bcache: stop writeback kthread and kworker when bch_cached_dev_run()
failed
bcache: avoid a deadlock in bcache_reboot()
bcache: acquire bch_register_lock later in cached_dev_detach_finish()
bcache: acquire bch_register_lock later in cached_dev_free()
bcache: fix potential deadlock in cached_def_free()
bcache: add code comments for journal_read_bucket()
bcache: set largest seq to ja->seq[bucket_index] in
journal_read_bucket()
bcache: shrink btree node cache after bch_btree_check()
bcache: Revert "bcache: free heap cache_set->flush_btree in
bch_journal_free"
bcache: Revert "bcache: fix high CPU occupancy during journal"
bcache: only clear BTREE_NODE_dirty bit when it is set
bcache: add comments for mutex_lock(&b->write_lock)
bcache: remove retry_flush_write from struct cache_set
bcache: fix race in btree_flush_write()
bcache: performance improvement for btree_flush_write()
bcache: add reclaimed_journal_buckets to struct cache_set

 drivers/md/bcache/alloc.c     |   9 ++
 drivers/md/bcache/bcache.h    |   6 +-
 drivers/md/bcache/bset.c      |  61 ++++--------
 drivers/md/bcache/btree.c     |  53 ++++++++--
 drivers/md/bcache/btree.h     |   2 +
 drivers/md/bcache/io.c        |  12 +++
 drivers/md/bcache/journal.c   | 141 ++++++++++++++++++--------
 drivers/md/bcache/journal.h   |   4 +
 drivers/md/bcache/super.c     | 227 ++++++++++++++++++++++++++++++++++--------
 drivers/md/bcache/sysfs.c     |  67 +++++++++----
 drivers/md/bcache/util.h      |   2 -
 drivers/md/bcache/writeback.c |   8 ++
 12 files changed, 432 insertions(+), 160 deletions(-)
Signature · 1 line
2.16.4