Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 592961 - ext3: fsync() does not flush disk caches
ext3: fsync() does not flush disk caches
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Eric Sandeen
Igor Zhang
Depends On:
  Show dependency treegraph
Reported: 2010-05-17 09:36 EDT by Andreas Luik
Modified: 2011-01-13 16:32 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-01-13 16:32:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0017 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 5.6 kernel security and bug fix update 2011-01-13 05:37:42 EST

  None (edit)
Description Andreas Luik 2010-05-17 09:36:49 EDT
Description of problem:

fsync() on a ext3 filesystem does not flush disk caches.  This influences
data consistency, especially for database system like MySQL and PostgreSQL.
This bug has been fixed in kernel patch 2.6.31 via

commit 56fcad29d4b3cbcbb2ed47a9d3ceca3f57175417
Author: Jan Kara <jack@suse.cz>
Date:   Tue Sep 8 14:59:42 2009 +0200

    ext3: Flush disk caches on fsync when needed
    In case we fsync() a file and inode is not dirty, we don't force a transaction
    to disk and hence don't flush disk caches. Thus file data could be just in disk
    caches and not on persistent storage. Fix the problem by flushing disk caches
    if we didn't force a transaction commit.

It would be great if this important fix could be integrated into the
RHEL 5.x kernel line (2.6.18) and made available in the next kernel

Kind regards,
Andreas Luik
Comment 1 Eric Sandeen 2010-05-17 09:53:53 EDT
Agreed, we should probably have this.

Note that the behavior is only in effect if barriers are turned on, which is still not the default upstream or in rhel5.

Comment 2 RHEL Product and Program Management 2010-05-20 08:49:38 EDT
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
Comment 7 Jarod Wilson 2010-09-10 17:39:51 EDT
in kernel-2.6.18-219.el5
You can download this test kernel from http://people.redhat.com/jwilson/el5

Detailed testing feedback is always welcomed.
Comment 11 errata-xmlrpc 2011-01-13 16:32:20 EST
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.


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