Bug 162728 - JBD race during shutdown of a journal
JBD race during shutdown of a journal
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Stephen Tweedie
Brian Brock
Depends On:
Blocks: 156322
  Show dependency treegraph
Reported: 2005-07-07 22:15 EDT by Mark Fasheh
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHSA-2005-514
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-05 09:40:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix this (415 bytes, patch)
2005-07-08 14:37 EDT, Mark Fasheh
no flags Details | Diff

  None (edit)
Description Mark Fasheh 2005-07-07 22:15:21 EDT
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:

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

How reproducible:

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 14:37:57 EDT
Created attachment 116531 [details]
Patch to fix this
Comment 4 Stephen Tweedie 2005-07-12 13:06:52 EDT
Patch looks OK to me; it has been proposed upstream and I've ACKed it there too.

Comment 12 Tim Burke 2005-08-14 20:08:13 EDT

on oracle-list, confirmed this fix.
Comment 14 Red Hat Bugzilla 2005-10-05 09:40:37 EDT
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.


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