qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] scsi: fix accounting of writes


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] scsi: fix accounting of writes
Date: Tue, 06 Sep 2011 13:15:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

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 <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

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