summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-27 14:52:17 (GMT)
committerChris Mason <chris.mason@oracle.com>2008-09-25 15:04:03 (GMT)
commitda496f2acf61153e0d4d42ded6a53f3367939db0 (patch)
tree24b2f0b54fc935226e106d0ec9e3a0005b58f38b
parent0ef3e66b6700eb8f052daa8b89443ff872fbbdfc (diff)
downloadlinux-fsl-qoriq-da496f2acf61153e0d4d42ded6a53f3367939db0.tar.xz
Btrfs: Always use the async submission queue for checksummed writes
This avoids IO stalls and poorly ordered IO from inline writers mixing in with the async submission queue Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/disk-io.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index d8a256d..016c0c0 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -434,13 +434,6 @@ int btrfs_wq_submit_bio(struct btrfs_fs_info *fs_info, struct inode *inode,
{
struct async_submit_bio *async;
- /*
- * inline writerback should stay inline, only hop to the async
- * queue if we're pdflush
- */
- if (!current_is_pdflush())
- return submit_bio_hook(inode, rw, bio, mirror_num);
-
async = kmalloc(sizeof(*async), GFP_NOFS);
if (!async)
return -ENOMEM;