xfs
[Top] [All Lists]

Re: [PATCH 2/9]: Reduce Log I/O latency

To: David Chinner <dgc@xxxxxxx>
Subject: Re: [PATCH 2/9]: Reduce Log I/O latency
From: Lachlan McIlroy <lachlan@xxxxxxx>
Date: Mon, 26 Nov 2007 13:11:46 +1100
Cc: xfs-oss <xfs@xxxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>
In-reply-to: <20071122003339.GH114266761@xxxxxxx>
References: <20071122003339.GH114266761@xxxxxxx>
Reply-to: lachlan@xxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (X11/20071031)
Index: 2.6.x-xfs-new/fs/xfs/xfs_log.c
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/xfs_log.c 2007-11-22 10:47:21.945395328 +1100
+++ 2.6.x-xfs-new/fs/xfs/xfs_log.c      2007-11-22 10:53:11.556186722 +1100
@@ -1443,6 +1443,8 @@ xlog_sync(xlog_t          *log,
        XFS_BUF_ZEROFLAGS(bp);
        XFS_BUF_BUSY(bp);
        XFS_BUF_ASYNC(bp);
+       XFS_BUF_SET_LOGBUF(bp);
+
        /*
         * Do an ordered write for the log block.
         * Its unnecessary to flush the first split block in the log wrap case.

Whichever way you go with this one Dave you should probably add another
XFS_BUF_SET_LOGBUF() call for the buffer split case further down in the
same function.


<Prev in Thread] Current Thread [Next in Thread>