Bug 162728

Summary: JBD race during shutdown of a journal
Product: Red Hat Enterprise Linux 4 Reporter: Mark Fasheh <mark.fasheh>
Component: kernelAssignee: Stephen Tweedie <sct>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jbaron, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://marc.theaimsgroup.com/?l=ext2-devel&m=112077008603349&w=2
Whiteboard:
Fixed In Version: RHSA-2005-514 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 13:40:36 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: 156322    
Attachments:
Description Flags
Patch to fix this none

Description Mark Fasheh 2005-07-08 02:15:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803

Description of problem:
kjournald is missing a check to JFS_UNMOUNT before it schedules away in it's
main function (kjournald() in fs/jbd/journal.c). If a journal is initialized and
quickly shut down (as may happen during OCFS2 recovery of a node) the call to
journal_destroy() will hang in journal_kill_thread() waiting for kjournald() to
see the JFS_UNMOUNT. A very small patch to fix this can be found at:
http://marc.theaimsgroup.com/?l=ext2-devel&m=112077008603349&w=2

Version-Release number of selected component (if applicable):


How reproducible:
Sometimes

Steps to Reproduce:
1.call journal_init_inode()
2.call journal_load()
3.call journal_destroy()
  

Additional info:

Comment 1 Mark Fasheh 2005-07-08 18:37:57 UTC
Created attachment 116531 [details]
Patch to fix this

Comment 4 Stephen Tweedie 2005-07-12 17:06:52 UTC
Patch looks OK to me; it has been proposed upstream and I've ACKed it there too.



Comment 12 Tim Burke 2005-08-15 00:08:13 UTC
Sunil.Mushran

on oracle-list, confirmed this fix.


Comment 14 Red Hat Bugzilla 2005-10-05 13:40:37 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-2005-514.html