btrfs: account as waiting for IO, while waiting fot the flush bio completion
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 14:04:26 +0000 (16:04 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 21 Jun 2017 17:03:39 +0000 (19:03 +0200)
commit2980d5745fa0beeaab4c22e25bea4faa54f7d9f7
tree7092c2a1cee233456a83b8cfca2badffde24bdef
parente0ae999414238aa9c0a116844813982effb68a02
btrfs: account as waiting for IO, while waiting fot the flush bio completion

Similar to what submit_bio_wait does, we should account for IO while
waiting for a bio completion. This has marginal visible effects, flush
bio is short-lived.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c