qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [Qemu-devel] [PATCH 09/16] block: wait for all pending


From: Fam Zheng
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH 09/16] block: wait for all pending I/O when doing synchronous requests
Date: Wed, 9 Mar 2016 16:13:05 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, 02/16 18:56, Paolo Bonzini wrote:
> diff --git a/block/qed.c b/block/qed.c
> index ebba220..e90792f 100644
> --- a/block/qed.c
> +++ b/block/qed.c
> @@ -352,7 +352,9 @@ static void qed_start_need_check_timer(BDRVQEDState *s)
>  static void qed_cancel_need_check_timer(BDRVQEDState *s)
>  {
>      trace_qed_cancel_need_check_timer(s);
> -    timer_del(s->need_check_timer);
> +    if (s->need_check_timer) {
> +        timer_del(s->need_check_timer);
> +    }
>  }

Not clear why this change is needed in this patch, but it is obviously not
wrong.  If this is to mask a bug, it at least deserves a comment.

The other parts of the patch looks good to me.

Fam



reply via email to

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