[Top] [All Lists]

TAKE 988149 - fix barrier fail detection

To: xfs@xxxxxxxxxxx, sgi.bugs.xfs@xxxxxxxxxxxx
Subject: TAKE 988149 - fix barrier fail detection
From: tes@xxxxxxx (Tim Shimmin)
Date: Fri, 10 Oct 2008 16:30:08 +1100 (EST)
Fix barrier fail detection

Currently we disable barriers as soon as we get a buffer in xlog_iodone
that has the XBF_ORDERED flag cleared.  But this can be the case not only
for buffers where the barrier failed, but also the first buffer of a
split log write in case of a log wraparound.  Due to the disabled
barriers we can easily get directory corruption on unclean shutdowns.
So instead of using this check add a new buffer flag for failed barrier

This is a regression vs 2.6.26 caused by patch to use the right macro
to check for the ORDERED flag, as we previously got true returned for
every buffer.

Thanks to Toei Rei for reporting the bug.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Date:  Fri Oct 10 16:28:19 EST 2008
Workarea:  chook.melbourne.sgi.com:/build/tes/2.6.x-xfs-quilt
Inspected by:  hch@xxxxxx,sandeen@xxxxxxxxxxx,david@xxxxxxxxxxxxx

The following file(s) were checked into:

Modid:  xfs-linux-melb:xfs-kern:32298a
fs/xfs/xfs_log.c - 1.368 - changed
        - fix barrier fail detection

fs/xfs/linux-2.6/xfs_buf.h - 1.128 - changed
        - fix barrier fail detection

fs/xfs/linux-2.6/xfs_buf.c - 1.263 - changed
        - fix barrier fail detection

<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 988149 - fix barrier fail detection, Tim Shimmin <=