Commit da496f2a authored by Chris Mason's avatar Chris Mason

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: default avatarChris Mason <chris.mason@oracle.com>
parent 0ef3e66b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment