Red Hat Bugzilla – Bug 446599
jbd races lead to EIO for O_DIRECT
Last modified: 2011-01-24 18:01:08 EST
Description of problem:
When running the attached test case on an ext3 file system eventually one of the
processes using direct I/O (O_DIRECT) will fail with EIO.
This has been reported to occur during for e.g. database load operations.
This only occurs on kernels that include the patch:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile the attached testcase with:
$ gcc -Wall -D_GNU_SOURCE -o testcase testcase.c
3. Create a testfile:
dd if=/dev/zero of=testfile bs=64k count=1000
3. Run multiple copies of the test in parallel with half using direct I/O and
half using buffered I/O, e.g.:
# ./testcase & ./testcase -d & ./testcase & ./testcase -d & ./testcase &
./testcase -d & ./testcase & ./testcase -d
write failed: Input/output error
Test runs indefinitely without error
Several upstream threads discussing this:
Created attachment 305460 [details]
testcase to trigger O_DIRECT EIO problem
Mirroring events from IT
This event sent from IssueTracker by balkov
IT is refusing to mirror even when done manually...
----- Additional Comments From email@example.com (prefers email at
firstname.lastname@example.org) 2008-05-27 13:30 EDT -------
The testcase ran fine over the long weekend with the patch version 7. Elmar -
it fix for you, too?
Created attachment 308846 [details]
Patch correcting jbd races
This is the final version of the patch pushed upstream by IBM. Now in -mm &
expected to be merged in 2.6.26.
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
Posted for review - pending PM ack based on Joe K.'s request
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
You can download this test kernel from http://people.redhat.com/dzickus/el5
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 therefore 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.