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

2011-09-06 Thread Kevin Wolf
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 incorrect

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

2011-09-05 Thread 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 t