[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 21/21] scsi: split command_complete callback
From: |
Christoph Hellwig |
Subject: |
Re: [Qemu-devel] [PATCH v3 21/21] scsi: split command_complete callback in two |
Date: |
Fri, 20 May 2011 18:11:32 +0200 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
> +static void esp_command_complete(SCSIRequest *req, uint32_t arg)
Shouldn't the "arg" argument to the new ->command_complete be renamed
to something like "sense" or "status"?
> +static void esp_transfer_data(SCSIRequest *req, uint32_t arg)
> +{
> + ESPState *s = DO_UPCAST(ESPState, busdev.qdev, req->bus->qbus.parent);
> +
> + DPRINTF("transfer %d/%d\n", s->dma_left, s->ti_size);
> + s->async_len = arg;
> + s->async_buf = scsi_req_get_buf(req);
> + if (s->dma_left) {
> + esp_do_dma(s);
> + } else if (s->dma_counter != 0 && s->ti_size <= 0) {
> + /* If this was the last part of a DMA transfer then the
> + completion interrupt is deferred to here. */
And for transfer_data "arg" should become "len".
- Re: [Qemu-devel] [PATCH v3 15/21] scsi: introduce scsi_req_kick, (continued)
- [Qemu-devel] [PATCH v3 19/21] scsi: make write_data return void, Paolo Bonzini, 2011/05/17
- [Qemu-devel] [PATCH v3 18/21] scsi-disk: add data direction checking, Paolo Bonzini, 2011/05/17
- [Qemu-devel] [PATCH v3 17/21] scsi: Implement 'get_sense' callback, Paolo Bonzini, 2011/05/17
- [Qemu-devel] [PATCH v3 20/21] scsi-generic: Handle queue full, Paolo Bonzini, 2011/05/17
- [Qemu-devel] [PATCH v3 21/21] scsi: split command_complete callback in two, Paolo Bonzini, 2011/05/17
- Re: [Qemu-devel] [PATCH v3 21/21] scsi: split command_complete callback in two,
Christoph Hellwig <=
- Re: [Qemu-devel] [PATCH v3 00/21] SCSI subsystem improvements, Paolo Bonzini, 2011/05/19