Re: [PATCH] Btrfs: do not async submit for nodatacsum inodes

2017-08-21 Thread Josef Bacik
On Fri, Aug 18, 2017 at 11:54:02AM -0600, Liu Bo wrote: > 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

[PATCH] Btrfs: do not async submit for nodatacsum inodes

2017-08-18 Thread Liu Bo
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