Bug 1376926

Summary: backport upstream 4.6+ stable@ DM fixes to arm kernel
Product: Red Hat Enterprise Linux 7 Reporter: Mike Snitzer <msnitzer>
Component: kernel-aarch64Assignee: Mike Snitzer <msnitzer>
kernel-aarch64 sub component: Device Mapper QA Contact: Bruno Goncalves <bgoncalv>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, bdonahue, bgoncalv, jcm, lmiksik, mlangsdo, msnitzer
Version: 7.3   
Target Milestone: rc   
Target Release: 7.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-aarch64-4.5.0-13.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1378202 (view as bug list) Environment:
Last Closed: 2016-11-03 22:53:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1372039    

Description Mike Snitzer 2016-09-16 20:30:56 UTC
Description of problem:

The RHELSA7.3 kernel is missing these important fixes that have gone upstream since Linux 4.5 was released:

6acfe68 dm: fix excessive dm-mq context switching
4df2bf4 dm snapshot: disallow the COW and origin devices from being identical
2eae9e4 dm thin metadata: don't issue prefetches if a transaction abort has failed
d14fcf3 dm cache: make sure every metadata function checks fail_io
98dbc9c dm: fix rq_end_stats() NULL pointer in dm_requeue_original_request()
9567366 dm cache metadata: fix READ_LOCK macros and cleanup WRITE_LOCK macros
6545b60 dm cache metadata: fix cmd_read_lock() acquiring write lock
602d165 dm verity fec: fix block calculation
bd9f55e dm: fix second blk_delay_queue() parameter to be in msec units not jiffies
99f3c90 dm flakey: error READ bios during the down_interval
7d9595d dm rq: fix the starting and stopping of blk-mq queues
eaf9a73 dm: set DMF_SUSPENDED* _before_ clearing DMF_NOFLUSH_SUSPENDING
299f623 dm flakey: fix reads to be issued if drop_writes configured

It should be noted that this small set of stable.org patch is a subset of the much larger 150+ DM patches that RHELSA7.3 doesn't have.

Comment 1 Mike Snitzer 2016-09-16 20:33:35 UTC
*** Bug 1376761 has been marked as a duplicate of this bug. ***

Comment 3 Mike Snitzer 2016-09-16 21:59:44 UTC
This work is snow-balling... there is code in the 4.5 kernel that I am _not_ willing to support (specifically we need upstream commit c5248f79f39 ("dm: remove support for stacking dm-mq on .request_fn device(s)")).  Getting that commit to apply will require more extensive backport work.

Comment 7 Bruno Goncalves 2016-09-27 11:45:48 UTC
It passed on our regression test on RHEL-7.3 Snap#5 (kernel-4.5.0-13.el7.aarch64) and BZ#1376761 is also not reproducible with this kernel.

Comment 9 errata-xmlrpc 2016-11-03 22:53:02 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, 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://rhn.redhat.com/errata/RHBA-2016-2145.html