Re: [Qemu-block] [PATCH v2 5/8] scsi: move unmap error checking to the complete callback

2018-02-07 Thread Alberto Garcia
On Fri 19 Jan 2018 01:50:04 PM CET, Anton Nefedov wrote: > This will help to account the operation in the following commit. > > The difference is that we don't call scsi_disk_req_check_error() before > the 1st discard iteration anymore. That function also checks if > the request is cancelled, howev

[Qemu-block] [PATCH v2 5/8] scsi: move unmap error checking to the complete callback

2018-01-19 Thread Anton Nefedov
This will help to account the operation in the following commit. The difference is that we don't call scsi_disk_req_check_error() before the 1st discard iteration anymore. That function also checks if the request is cancelled, however it shouldn't get canceled until it yields in blk_aio() function