Bug 1978369 - dm writecache: sync with upstream 5.14
Summary: dm writecache: sync with upstream 5.14
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: kernel
Version: 8.5
Hardware: Unspecified
OS: Unspecified
Target Milestone: beta
: ---
Assignee: Mike Snitzer
QA Contact: Filip Suba
Depends On:
TreeView+ depends on / blocked
Reported: 2021-07-01 16:25 UTC by Mike Snitzer
Modified: 2021-11-10 06:03 UTC (History)
6 users (show)

Fixed In Version: kernel-4.18.0-325.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-11-09 19:23:41 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Gitlab redhat/rhel/src/kernel rhel-8 merge_requests 910 0 None None None 2021-07-01 21:05:57 UTC
Red Hat Product Errata RHSA-2021:4356 0 None None None 2021-11-09 19:24:26 UTC

Description Mike Snitzer 2021-07-01 16:25:42 UTC
Description of problem:

Sync dm-writecache changes sent for upstream merge for v5.14-rc1. Developed to address performance issues identified by Intel when they tested ceph-oriented workloads against dm-writecache. Most notable advance is improved performance when the working set exhausts the writecache's free space in the writecache's fast device (e.g. Intel optane device).

linux-dm.git commits that will soon be merged into upstream's linux.git:

db2351eb22e4 dm kcopyd: avoid useless atomic operations
6bcd658f2a2a dm kcopyd: avoid spin_lock_irqsave from process context
ee50cc19d80e dm writecache: don't split bios when overwriting contiguous cache content
af4f6cabcc5a dm writecache: interrupt writeback if suspended
620cbe40ed10 dm writecache: remove unused gfp_t argument from wc_add_block()
991bd8d7bc78 dm writecache: commit just one block, not a full page
8c77f1cb8458 dm writecache: use list_move instead of list_del/list_add in writecache_writeback()
293128b1ef5a dm writecache: have ssd writeback wait if the kcopyd workqueue is busy
ee55b92a7391 dm writecache: flush origin device when writing and cache is full
867de40c4c23 dm writecache: write at least 4k when committing
cd039afa0ad8 dm writecache: add "cleaner" and "max_age" to Documentation
611c3e168b1c dm writecache: add optional "metadata_only" parameter
dc4fa29fe445 dm io tracker: factor out IO tracker
95b88f4d71cb dm writecache: pause writeback if cache full and origin being written directly
5c0de3d72f8c dm writecache: make writeback pause configurable

Comment 1 Mike Snitzer 2021-07-01 17:08:45 UTC
Also need this upstream commit:

02101c45ec5b1 x86/asm: Optimize memcpy_flushcache()

Comment 9 Filip Suba 2021-07-30 09:14:09 UTC
Verified with kernel-4.18.0-325.el8.

Comment 12 errata-xmlrpc 2021-11-09 19:23:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: kernel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.