From: Kevin Wolf <kwolf@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, hch@lst.de
Subject: Re: [Qemu-devel] [PATCH] scsi: fix accounting of writes
Date: Tue, 06 Sep 2011 13:15:57 +0200 [thread overview]
Message-ID: <4E6600ED.2060200@redhat.com> (raw)
In-Reply-To: <1315239111-13874-1-git-send-email-pbonzini@redhat.com>
Am 05.09.2011 18:11, schrieb Paolo Bonzini:
> Writes go through scsi_write_complete at least twice, the first time
> to get some data without having actually written anything. Because
> of this, the first time scsi_write_complete is called it will call
> bdrv_acct_done and account a read incorrectly. Fix this by looking
> at the aiocb. I am doing the same in scsi_read_complete for symmetry,
> but it is only needed in the (bogus) case of bdrv_aio_readv returning
> NULL.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Thanks, applied to the block branch.
Kevin
prev parent reply other threads:[~2011-09-06 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-05 16:11 [Qemu-devel] [PATCH] scsi: fix accounting of writes Paolo Bonzini
2011-09-06 11:15 ` Kevin Wolf [this message]
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=4E6600ED.2060200@redhat.com \
--to=kwolf@redhat.com \
--cc=hch@lst.de \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.