qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, jcody@redhat.com,
	stefanha@redhat.com, famz@redhat.com, cohuck@redhat.com,
	borntraeger@de.ibm.com
Subject: Re: [Qemu-devel] [PATCH v2 1/1] iotests: fix test case 185
Date: Mon, 26 Mar 2018 12:29:19 +0200	[thread overview]
Message-ID: <20180326102919.GB5267@localhost.localdomain> (raw)
In-Reply-To: <20180323034356.72130-2-haoqf@linux.vnet.ibm.com>

Am 23.03.2018 um 04:43 hat QingFeng Hao geschrieben:
> Test case 185 failed since commit 4486e89c219 --- "vl: introduce vm_shutdown()".
> It's because of the newly introduced function vm_shutdown calls bdrv_drain_all,
> which is called later by bdrv_close_all. bdrv_drain_all resumes the jobs
> that doubles the speed and offset is doubled.
> Some jobs' status are changed as well.
> 
> The fix is to not resume the jobs that are already yielded and also change
> 185.out accordingly.
> 
> Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
> Signed-off-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>

Stefan already commented on the fix itself, but I want to add two more
points:

Please change your subject line. "iotests: fix test case 185" means that
you are fixing the test case, not qemu code that makes the test case
fail. The subject line should describe the actual change. In all
likelihood it will start with "blockjob:" rather than "iotests:".

> diff --git a/include/block/blockjob.h b/include/block/blockjob.h
> index fc645dac68..f8f208bbcf 100644
> --- a/include/block/blockjob.h
> +++ b/include/block/blockjob.h
> @@ -99,6 +99,11 @@ typedef struct BlockJob {
>      bool ready;
>  
>      /**
> +     * Set to true when the job is yielded.
> +     */
> +    bool yielded;

This is the same as !busy, so we don't need a new field for this.

Kevin

  parent reply	other threads:[~2018-03-26 10:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-23  3:43 [Qemu-devel] [PATCH v2 0/1] iotests: fix test case 185 QingFeng Hao
2018-03-23  3:43 ` [Qemu-devel] [PATCH v2 1/1] " QingFeng Hao
2018-03-23 10:04   ` Stefan Hajnoczi
2018-03-27  3:32     ` QingFeng Hao
2018-04-03 14:20       ` Stefan Hajnoczi
2018-03-26 10:29   ` Kevin Wolf [this message]
2018-03-27  3:33     ` QingFeng Hao
2018-03-23  4:41 ` [Qemu-devel] [PATCH v2 0/1] " no-reply

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=20180326102919.GB5267@localhost.localdomain \
    --to=kwolf@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=famz@redhat.com \
    --cc=haoqf@linux.vnet.ibm.com \
    --cc=jcody@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).