Re: [PATCH 1/2] sched: add wait_for_completion_io[_timeout]

From: Ingo Molnar
Date: Fri Feb 15 2013 - 10:41:46 EST

* Vladimir Davydov <vdavydov@xxxxxxxxxxxxx> wrote:

> The only difference between wait_for_completion[_timeout]() and
> wait_for_completion_io[_timeout]() is that the latter calls
> io_schedule_timeout() instead of schedule_timeout() so that the caller
> is accounted as waiting for IO, not just sleeping.
> These functions can be used for correct iowait time accounting when the
> completion struct is actually used for waiting for IO (e.g. completion
> of a bio request in the block layer).
> Signed-off-by: Vladimir Davydov <vdavydov@xxxxxxxxxxxxx>

Acked-by: Ingo Molnar <mingo@xxxxxxxxxx>


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at