Bug 1098643

Summary: sync with latest upstream dm-thin provisioning improvements and fixes (through 3.15)
Product: Red Hat Enterprise Linux 7 Reporter: Mike Snitzer <msnitzer>
Component: kernelAssignee: Mike Snitzer <msnitzer>
kernel sub component: Thin Provisioning QA Contact: yanfu,wang <yanwang>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, qcai, thornber, yanwang, zkabelac
Version: 7.1   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-3.10.0-138.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 12:13:05 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:

Description Mike Snitzer 2014-05-16 19:28:39 UTC
Description of problem:
Include all the upstream dm-thin commits through 3.15:

a9d4539 dm transaction manager: fix corruption due to non-atomic transaction commit
fe76cd8 dm thin: fix dangling bio in process_deferred_bios error path
760fe67 dm thin: simplify pool_is_congested
c140e1c dm thin: use per thin device deferred bio lists
67324ea dm thin: sort the per thin deferred bios using an rb_tree
5e3283e dm thin: irqsave must always be used with the pool->lock spinlock
b10ebd3 dm thin: fix rcu_read_lock being held in code that can sleep
fbcde3d dm thin: use INIT_WORK_ONSTACK in noflush_work to avoid ODEBUG warning

NOTE: A couple other 3.15 dm-thin fixes are going in through bug#1091852 and bug#1095639, specifically:

8d07e8a dm thin: allow metadata commit if pool is in PM_OUT_OF_DATA_SPACE mode
85ad643 dm thin: add timeout to stop out-of-data-space mode holding IO forever

Comment 1 Mike Snitzer 2014-05-16 19:47:31 UTC
First 2 commits listed in comment#0 are already in RHEL7:
a9d4539 dm transaction manager: fix corruption due to non-atomic transaction commit
fe76cd8 dm thin: fix dangling bio in process_deferred_bios error path

Comment 2 Jarod Wilson 2014-07-21 17:03:27 UTC
Patch(es) available on kernel-3.10.0-138.el7

Comment 7 errata-xmlrpc 2015-03-05 12:13:05 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/RHSA-2015-0290.html