xfs
[Top] [All Lists]

[PATCH 02/27] xfs: re-enable non-blocking behaviour in xfs_map_blocks

To: xfs@xxxxxxxxxxx
Subject: [PATCH 02/27] xfs: re-enable non-blocking behaviour in xfs_map_blocks
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Fri, 01 Jul 2011 05:43:23 -0400
References: <20110701094321.936534538@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
The non-blockig behaviour in xfs_map_blocks currently is conditional on
having both the WB_SYNC_NONE sync_mode and the nonblocking flag set.
The latter used to be used by both pdflush, kswapd and a few other places
in older kernels, but has been fading out starting with the introduction
of the per-bdi flusher threads.

Enable the non-blocking behaviour for all WB_SYNC_NONE calls to get back
the behaviour we want.

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

Index: xfs/fs/xfs/linux-2.6/xfs_aops.c
===================================================================
--- xfs.orig/fs/xfs/linux-2.6/xfs_aops.c        2011-06-30 20:10:06.959596789 
+0200
+++ xfs/fs/xfs/linux-2.6/xfs_aops.c     2011-06-30 20:10:19.749596630 +0200
@@ -959,7 +959,7 @@ xfs_vm_writepage(
        offset = page_offset(page);
        type = IO_OVERWRITE;
 
-       if (wbc->sync_mode == WB_SYNC_NONE && wbc->nonblocking)
+       if (wbc->sync_mode == WB_SYNC_NONE)
                nonblocking = 1;
 
        do {

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