RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1978369 - dm writecache: sync with upstream 5.14
Summary: dm writecache: sync with upstream 5.14
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: kernel
Version: 8.5
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: beta
: ---
Assignee: Mike Snitzer
QA Contact: Filip Suba
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2021-11-09 19:23:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
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.

https://access.redhat.com/errata/RHSA-2021:4356


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