All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: 1191606@bugs.launchpad.net, lersek@redhat.com,
	qemu-devel@nongnu.org, Ronnie Sahlberg <ronniesahlberg@gmail.com>,
	"1.5.x" <qemu-stable@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] Fix iSCSI crash on SG_IO with an iovector
Date: Tue, 25 Jun 2013 12:42:36 +0200	[thread overview]
Message-ID: <51C9741C.4070705@redhat.com> (raw)
In-Reply-To: <20130625092421.GC26177@stefanha-thinkpad.redhat.com>

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 <ronniesahlberg@gmail.com>
>>> ---
>>>  block/iscsi.c |   56 +++++++++++++++++++++++++++++++++++++++++++++++++-------
>>>  1 files changed, 49 insertions(+), 7 deletions(-)
>>
>> Cc: qemu-stable@nongnu.org
>>
>> 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?
> 

  reply	other threads:[~2013-06-25 10:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-23 15:07 [Qemu-devel] [PATCH] iSCSI fix crash when using virtio and libiscsi V3 Ronnie Sahlberg
2013-06-23 15:07 ` [Qemu-devel] [PATCH] Fix iSCSI crash on SG_IO with an iovector Ronnie Sahlberg
2013-06-23 15:23   ` Laszlo Ersek
2013-06-24 14:40   ` Paolo Bonzini
2013-06-25  9:24     ` Stefan Hajnoczi
2013-06-25 10:42       ` Paolo Bonzini [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-22  1:37 [Qemu-devel] [PATCH] iSCSI fix crash when using virtio and libiscsi V2 Ronnie Sahlberg
2013-06-22  1:37 ` [Qemu-devel] [PATCH] Fix iSCSI crash on SG_IO with an iovector Ronnie Sahlberg
2013-06-23 10:01   ` Laszlo Ersek
2013-06-25  9:21   ` Stefan Hajnoczi
2013-06-21  2:32 [Qemu-devel] [PATCH] iSCSI fix crash when using virtio and libiscsi Ronnie Sahlberg
2013-06-21  2:32 ` [Qemu-devel] [PATCH] Fix iSCSI crash on SG_IO with an iovector Ronnie Sahlberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51C9741C.4070705@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=1191606@bugs.launchpad.net \
    --cc=lersek@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=ronniesahlberg@gmail.com \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.