diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-08-18 11:54:02 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 12:27:55 +0100 |
commit | 9b4a9b283d5efbe9a221e2282e41e272e9db5ae9 (patch) | |
tree | 0160b737c50845e16c84a0b7e7e03ecfebc9e992 /crypto | |
parent | 9cd3a7eb8507deb3c75077739a07ccccad0dc991 (diff) |
Btrfs: do not async submit for nodatasum inodes
While we submit direct writes, if the inode is flagged with nodatasum,
there's no benefit to submit asynchronously, because
a) we don't have to calculate checksum across processors,
b) and direct IO has started a plug, but async submit makes us queue
IO on each device's scheduled IO list instead of DIO's plug list, so
that IOs get much less merges in general.
Lets use sync submit for nodatasum inodes.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions