Received: from eggs.gnu.org ([2001:4830:134:3::10]:42383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buzxr-00082C-Lj for qemu-devel@nongnu.org; Fri, 14 Oct 2016 06:43:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buzxq-0003yu-Oo for qemu-devel@nongnu.org; Fri, 14 Oct 2016 06:43:47 -0400 References: <1476380062-18001-1-git-send-email-pbonzini@redhat.com> <1476380062-18001-8-git-send-email-pbonzini@redhat.com> <20161014104212.GE14830@lemon> From: Paolo Bonzini Message-ID: Date: Fri, 14 Oct 2016 12:43:36 +0200 MIME-Version: 1.0 In-Reply-To: <20161014104212.GE14830@lemon> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/18] block: introduce bdrv_poll_while and bdrv_wakeup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, kwolf@redhat.com, stefanha@redhat.com On 14/10/2016 12:42, Fam Zheng wrote: >> > diff --git a/block/qed.c b/block/qed.c >> > index 1a7ef0a..dcb5fb9 100644 >> > --- a/block/qed.c >> > +++ b/block/qed.c >> > @@ -354,7 +354,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); >> > + } >> > } > > This belongs to a separate patch, or deserves an explanation in the commit > message. It probably belongs in no patch, actually. Paolo