block: account iowait time when waiting for completion of IO request
[platform/adaptation/renesas_rcar/renesas_kernel.git] / block / blk-flush.c
index 720ad60..db8f1b5 100644 (file)
@@ -436,7 +436,7 @@ int blkdev_issue_flush(struct block_device *bdev, gfp_t gfp_mask,
 
        bio_get(bio);
        submit_bio(WRITE_FLUSH, bio);
-       wait_for_completion(&wait);
+       wait_for_completion_io(&wait);
 
        /*
         * The driver must store the error location in ->bi_sector, if