From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Christoph Hellwig <hch@lst.de>
Cc: stefanha@gmail.com, kraxel@redhat.com,
Hannes Reinecke <hare@suse.de>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 12/16] scsi-generic: use plain ioctl
Date: Fri, 19 Nov 2010 16:41:38 -0800 [thread overview]
Message-ID: <1290213698.28657.62.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <20101119183901.GI32461@lst.de>
On Fri, 2010-11-19 at 19:39 +0100, Christoph Hellwig wrote:
> On Thu, Nov 18, 2010 at 03:47:36PM +0100, Hannes Reinecke wrote:
> >
> > aio_ioctl is emulated anyway and currently broken.
>
> What's broken about it currently?
Mmmmmm, I do not recall this being broken in the first place..? There
was a single issue with megasas+bdrv_aio_ioctl() with WinXP (that did
not appear with lsi53c895a) that was mentioned on the list earlier in
the year that required a patch to use bdev_ioctl(), but last I recall
Hannes had already fixed this in recent megasas.c code w/ 32-bit MSFT
guests. Also, this is what I have been with scsi_generic.c and
scsi_bsg.c into TCM_loop in my v0.12.5 megasas tree, and I am not
observing any obvious issues with AIO IOCTLs for SG_IO/BSG into Linux
guests.
I will give AIO IOCTL ops a run with these on v2.6.37-rc2 lock-less KVM
host mode <-> TCM_Loop to verify against the v0.12.5 megasas tree.
>
> > So better use 'normal' ioctl here as there are no benefits
> > on using the emulated async I/O call.
>
> There are huge benefits. Without it the whole scsi command execution
> happens synchronously in the qemu main loop, blocking guest execution.
>
Indeed. Using bdrv_ioctl() in execute_command() will very effectively
disable TCQ > 1 into the backend struct scsi_device.
Hannes, did you run into another scenario why you needed to do this for
megasas..?
Other than this one piece the rest of the series looks very good. Thank
you for putting these pieces together.
--nab
next prev parent reply other threads:[~2010-11-20 0:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 14:47 [Qemu-devel] [PATCH 12/16] scsi-generic: use plain ioctl Hannes Reinecke
2010-11-19 18:39 ` Christoph Hellwig
2010-11-20 0:41 ` Nicholas A. Bellinger [this message]
2010-11-20 1:25 ` adq
2010-11-20 8:23 ` Nicholas A. Bellinger
2010-11-20 13:16 ` adq
2010-11-22 7:21 ` Hannes Reinecke
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=1290213698.28657.62.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).