Skip to content

Commit

Permalink
Btrfs: Always use the async submission queue for checksummed writes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 0ef3e66 commit da496f2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit da496f2

Please sign in to comment.