diff options
author | David Sterba <dsterba@suse.com> | 2017-06-15 16:04:26 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-21 19:03:39 +0200 |
commit | 2980d5745fa0beeaab4c22e25bea4faa54f7d9f7 (patch) | |
tree | 7092c2a1cee233456a83b8cfca2badffde24bdef /fs | |
parent | e0ae999414238aa9c0a116844813982effb68a02 (diff) | |
download | linux-2980d5745fa0beeaab4c22e25bea4faa54f7d9f7.tar.gz linux-2980d5745fa0beeaab4c22e25bea4faa54f7d9f7.tar.bz2 linux-2980d5745fa0beeaab4c22e25bea4faa54f7d9f7.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index bfcbab3a7607..917e29167580 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3519,7 +3519,7 @@ static int wait_dev_flush(struct btrfs_device *device) return 0; device->flush_bio_sent = 0; - wait_for_completion(&device->flush_wait); + wait_for_completion_io(&device->flush_wait); if (bio->bi_error) { ret = bio->bi_error; |