qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH 01/11] block: prepare write threshold code for t


From: Stefan Hajnoczi
Subject: Re: [Qemu-block] [PATCH 01/11] block: prepare write threshold code for thread safety
Date: Mon, 10 Jul 2017 14:21:21 +0100
User-agent: Mutt/1.8.0 (2017-02-23)

On Thu, Jul 06, 2017 at 06:38:18PM +0200, Paolo Bonzini wrote:
> Code refactoring only.
> 
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
>  block/write-threshold.c | 28 ++++++++++++++++------------
>  1 file changed, 16 insertions(+), 12 deletions(-)
> 
> diff --git a/block/write-threshold.c b/block/write-threshold.c
> index 0bd1a01c86..c8ebc32b4d 100644
> --- a/block/write-threshold.c
> +++ b/block/write-threshold.c
> @@ -37,18 +37,22 @@ static void write_threshold_disable(BlockDriverState *bs)
>      }
>  }
>  
> +static uint64_t exceeded_amount(const BdrvTrackedRequest *req,
> +                                uint64_t thres)

Not a reason to respin, but I would prefer a more specific name so the
intent of the code is easier to understand: exceeded_threshold() instead
of exceeded_amount().

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]