All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Vladimir Davydov <vdavydov@parallels.com>
Cc: Jens Axboe <axboe@kernel.dk>, Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	devel@openvz.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] sched: add wait_for_completion_io[_timeout]
Date: Fri, 15 Feb 2013 16:41:35 +0100	[thread overview]
Message-ID: <20130215154135.GB3324@gmail.com> (raw)
In-Reply-To: <d5e5c32b045e448072b3a4b77cd6557408b77103.1360851174.git.vdavydov@parallels.com>


* Vladimir Davydov <vdavydov@parallels.com> 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@parallels.com>

Acked-by: Ingo Molnar <mingo@kernel.org>

Thanks,

	Ingo

      parent reply	other threads:[~2013-02-15 15:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 14:19 [PATCH 1/2] sched: add wait_for_completion_io[_timeout] Vladimir Davydov
2013-02-14 14:19 ` [PATCH 2/2] block: account iowait time when waiting for completion of IO request Vladimir Davydov
2013-02-15 15:44   ` Jens Axboe
2013-02-15 15:41 ` Ingo Molnar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130215154135.GB3324@gmail.com \
    --to=mingo@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=devel@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=vdavydov@parallels.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.