Skip to content

Commit 2980d57

Browse files
committed
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent e0ae999 commit 2980d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/disk-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3519,7 +3519,7 @@ static int wait_dev_flush(struct btrfs_device *device)
35193519
return 0;
35203520

35213521
device->flush_bio_sent = 0;
3522-
wait_for_completion(&device->flush_wait);
3522+
wait_for_completion_io(&device->flush_wait);
35233523

35243524
if (bio->bi_error) {
35253525
ret = bio->bi_error;

0 commit comments

Comments
 (0)