| To: | Christoph Hellwig <hch@xxxxxx> |
|---|---|
| Subject: | Re: [PATCH] fix barrier fail detection |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Fri, 10 Oct 2008 09:35:34 +1100 |
| Cc: | xfs@xxxxxxxxxxx, toei.rei@xxxxxxxxxxxx |
| In-reply-to: | <20081009130042.GA21071@lst.de> |
| Mail-followup-to: | Christoph Hellwig <hch@xxxxxx>, xfs@xxxxxxxxxxx, toei.rei@xxxxxxxxxxxx |
| References: | <20081009130042.GA21071@lst.de> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.18 (2008-05-17) |
On Thu, Oct 09, 2008 at 03:00:42PM +0200, Christoph Hellwig wrote: > 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 > writes. > > 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. Looks good. Should this be sent straight to Linus to get it into .27? If you want to do that, you can add my SOB. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [RFC, PATCH 0/7] XFS: dynamic busy extent tracking, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH V2] Re-dirty pages on ENOSPC when converting delayed allocations, Dave Chinner |
| Previous by Thread: | Re: [PATCH] fix barrier fail detection, Eric Sandeen |
| Next by Thread: | Re: [PATCH] fix barrier fail detection, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |