Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 185456

Summary: kernel dm mirroring: suspend operation is not well behaved
Product: Red Hat Enterprise Linux 4 Reporter: Jonathan Earl Brassow <jbrassow>
Component: kernelAssignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: agk, christophe.varoqui, egoggin, jbaron, jbrassow, lmb, tranlan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2006-0575 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 22:43:43 UTC Type: ---
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: 181409    
Attachments:
Description Flags
proposed (but not final) patch
none
better patch none

Description Jonathan Earl Brassow 2006-03-14 21:53:20 UTC
Description of problem:

All outstanding I/O that the mirror has generated (recovery traffic) needs to be
completed before a return from mirror_postsuspend().  These are the rules of
device-mapper suspension, and mirroring is not following it.  This has cause
problems for other targets, and it is thought that it will cause problems for
mirroring during device failure scenarios.

Comment 1 Jonathan Earl Brassow 2006-03-14 21:55:20 UTC
Created attachment 126122 [details]
proposed (but not final) patch

Comment 3 Jonathan Earl Brassow 2006-04-01 20:00:08 UTC
Created attachment 127183 [details]
better patch

We must call log_postsuspend only _after_ all recovery work has been handled
and all associated calls to the log have been made.  Otherwise, the log can not
properly suspend, because it may be given work after the log postsuspend call. 
The fix involves a counter.

Comment 4 Jason Baron 2006-05-09 17:27:24 UTC
committed in stream U4 build 34.26. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/


Comment 8 Red Hat Bugzilla 2006-08-10 22:43:43 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0575.html