[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH 3/7] blockjob: create block_job_thr
From: |
John Snow |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH 3/7] blockjob: create block_job_throttle |
Date: |
Thu, 14 Dec 2017 10:57:30 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 12/14/2017 03:39 AM, Paolo Bonzini wrote:
> On 14/12/2017 01:59, John Snow wrote:
>> + * Yield if it has been SLICE_TIME nanoseconds since the last yield.
>> + * Otherwise, check if we need to pause (and update the yield counter).
>
> What is the yield counter?
>
> Thanks,
>
> Paolo
>
Fuzzy brain talk.
I mean to refer to the last_yield_ns field, which gets updated by both
pause and sleep commands. I'm trying to document that no matter what
happens when you call this function (either a scheduled 0ns sleep, the
sleep requested, or a pause was requested) that it will update the
last_yield_ns variable.
- Re: [Qemu-block] [Qemu-devel] [PATCH 1/7] blockjob: record time of last yield, (continued)
[Qemu-block] [PATCH 2/7] blockjob: consolidate SLICE_TIME definition, John Snow, 2017/12/13
[Qemu-block] [PATCH 5/7] block/commit: use block_job_throttle, John Snow, 2017/12/13
[Qemu-block] [PATCH 3/7] blockjob: create block_job_throttle, John Snow, 2017/12/13
[Qemu-block] [PATCH 4/7] blockjob: allow block_job_throttle to take delay_ns, John Snow, 2017/12/13
[Qemu-block] [PATCH 6/7] block/stream: use block_job_throttle, John Snow, 2017/12/13