[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH] Fix iSCSI crash on SG_IO with an iovector
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-stable] [PATCH] Fix iSCSI crash on SG_IO with an iovector |
Date: |
Tue, 25 Jun 2013 12:42:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Il 25/06/2013 11:24, Stefan Hajnoczi ha scritto:
> On Mon, Jun 24, 2013 at 04:40:11PM +0200, Paolo Bonzini wrote:
>> Il 23/06/2013 17:07, Ronnie Sahlberg ha scritto:
>>> Don't assume that SG_IO is always invoked with a simple buffer,
>>> check the iovec_count and if it is >= 1 then we need to pass an array
>>> of iovectors to libiscsi instead of just a plain buffer.
>>>
>>> Signed-off-by: Ronnie Sahlberg <address@hidden>
>>> ---
>>> block/iscsi.c | 56
>>> +++++++++++++++++++++++++++++++++++++++++++++++++-------
>>> 1 files changed, 49 insertions(+), 7 deletions(-)
>>
>> Cc: address@hidden
>>
>> Will apply to scsi-next in the next few days.
>
> Paolo, there are small whitespace issues that you might like to fix when
> merging:
Yup, will do.
Paolo
>>> + } else {
>>> +#if defined(LIBISCSI_FEATURE_IOVECTOR)
>>> + scsi_task_set_iov_out(acb->task,
>>> + (struct scsi_iovec *) acb->ioh->dxferp,
>>> + acb->ioh->iovec_count);
>
> Should be 4-space indentation.
>
>>> + #else
>
> Space before #else?
>