Hi Coly,
Thank you for your patches, I'll apply this patchset in next release.
-- Xie XiuQi
On 2020/1/5 19:18, Coly Li via Kernel wrote:
Hi openEler kernel maintainer,
This is the bcache backport since Linux v4.19 to v5.5 for openEuler-10 kernel. All the patches are based on openEuler-1.0 commit cf975ca6a64a ("Document: add guideline to submitting patches to openEuler").
This patch set survives for 2+ hours smoking test on a 48x2 cores Taishan machine. Pleasse review and consider to pick them.
Thanks in advance.
Coly Li
Andrea Righi (1): bcache: fix deadlock in bcache_allocator
Christoph Hellwig (2): bcache: remove the extra cflags for request.o bcache: don't export symbols
Colin Ian King (1): bcache: fix indentation issue, remove tabs on a hunk of code
Coly Li (50): bcache: fix typo in code comments of closure_return_with_destructor() bcache: introduce force_wake_up_gc() bcache: option to automatically run gc thread after writeback bcache: add MODULE_DESCRIPTION information bcache: make cutoff_writeback and cutoff_writeback_sync tunable bcache: set writeback_percent in a flexible range bcache: not use hard coded memset size in bch_cache_accounting_clear() bcache: export backing_dev_name via sysfs bcache: export backing_dev_uuid via sysfs bcache: fix input integer overflow of congested threshold bcache: add sysfs_strtoul_bool() for setting bit-field variables bcache: use sysfs_strtoul_bool() to set bit-field variables bcache: fix input overflow to writeback_delay bcache: fix input overflow to journal_delay_ms bcache: fix input overflow to cache set io_error_limit bcache: move definition of 'int ret' out of macro read_bucket() bcache: add comments for kobj release callback routine 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() bcache: don't set max writeback rate if gc is running bcache: fix return value error in bch_journal_read() bcache: avoid flushing btree node in cache_set_flush() if io disabled 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: 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: 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: 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: remove retry_flush_write from struct cache_set bcache: performance improvement for btree_flush_write() bcache: add reclaimed_journal_buckets to struct cache_set bcache: fix static checker warning in bcache_device_free() bcache: add more accurate error messages in read_super() bcache: deleted code comments for dead code in bch_data_insert_keys() bcache: add code comment bch_keylist_pop() and bch_keylist_pop_front() bcache: add code comments in bch_btree_leaf_dirty() bcache: add idle_max_writeback_rate sysfs interface bcache: at least try to shrink 1 node in bch_mca_scan()
Dan Carpenter (1): bcache: Fix an error code in bch_dump_read()
Dongbo Cao (3): bcache: remove useless parameter of bch_debug_init() bcache: split combined if-condition code into separate ones bcache: panic fix for making cache device
Geliang Tang (1): bcache: use kmemdup_nul for CACHED_LABEL buffer
George Spelvin (1): bcache: Clean up bch_get_congested()
Guoju Fang (4): bcache: print number of keys in trace_bcache_journal_write bcache: fix crashes stopping bcache device before read miss done bcache: fix inaccurate result of unused buckets bcache: fix a lost wake-up problem caused by mca_cannibalize_lock
Jens Axboe (1): bcache: make is_discard_enabled() static
Ming Lei (1): bcache: avoid to use bio_for_each_segment_all() in bch_bio_alloc_pages()
Shenghui Wang (7): bcache: remove unused bch_passthrough_cache bcache: use MAX_CACHES_PER_SET instead of magic number 8 in __bch_bucket_alloc_set bcache: add comment for cache_set->fill_iter bcache: update comment for bch_data_insert bcache: update comment in sysfs.c bcache: cannot set writeback_running via sysfs if no writeback kthread created bcache: fix wrong usage use-after-freed on keylist in out_nocoalesce branch of btree_gc_coalesce
Shile Zhang (1): bcache: add cond_resched() in __bch_cache_cmp()
Wei Yongjun (1): bcache: fix possible memory leak in bch_cached_dev_run()
drivers/md/bcache/Makefile | 2 - drivers/md/bcache/alloc.c | 7 +- drivers/md/bcache/bcache.h | 30 ++- drivers/md/bcache/bset.c | 78 ++----- drivers/md/bcache/btree.c | 30 ++- drivers/md/bcache/btree.h | 18 ++ drivers/md/bcache/closure.c | 7 - drivers/md/bcache/closure.h | 3 +- drivers/md/bcache/debug.c | 7 +- drivers/md/bcache/journal.c | 121 ++++++++--- drivers/md/bcache/journal.h | 4 + drivers/md/bcache/request.c | 59 ++--- drivers/md/bcache/request.h | 4 +- drivers/md/bcache/stats.c | 2 +- drivers/md/bcache/super.c | 486 +++++++++++++++++++++++++++++++++++------- drivers/md/bcache/sysfs.c | 166 +++++++++++---- drivers/md/bcache/sysfs.h | 10 + drivers/md/bcache/util.c | 6 +- drivers/md/bcache/util.h | 26 ++- drivers/md/bcache/writeback.c | 34 +++ drivers/md/bcache/writeback.h | 12 +- include/trace/events/bcache.h | 27 ++- 22 files changed, 861 insertions(+), 278 deletions(-)