All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Lieven <pl@kamp.de>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-2.5 1/4] block: add BlockLimits.max_iov field
Date: Thu, 09 Jul 2015 06:39:02 +0200	[thread overview]
Message-ID: <559DFAE6.1020005@kamp.de> (raw)
In-Reply-To: <1436369462-24252-2-git-send-email-stefanha@redhat.com>

Am 08.07.2015 um 17:30 schrieb Stefan Hajnoczi:
> The maximum number of struct iovec elements depends on the
> BlockDriverState.  The raw-posix protocol has a maximum of IOV_MAX but
> others could have different values.
>
> Instead of assuming raw-posix and hardcoding IOV_MAX in several places,
> put the limit into BlockLimits.
>
> Cc: Peter Lieven <pl@kamp.de>
> Suggested-by: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> Peter Lieven: I think the SCSI LUN level does not have a maximum
> scatter-gather segments constraint.  That is probably only at the HBA
> level.  CCed you anyway in case you think block/iscsi.c should set the
> max_iov field.

libiscsi will send the iovec array straight to readv and writev to
read/write from the TCP socket. So we need IOV_MAX here as well.

>
> Kevin: The default is now INT_MAX.  This means non-raw-posix users will
> now be able to merge more requests than before.  They were limited to
> IOV_MAX previously.  This could expose limits in other BlockDrivers
> which we weren't aware of...

Why rise the default to INT_MAX and not leave it at IOV_MAX?
Is there any case where we except that much iovectors coming in?

Peter

  reply	other threads:[~2015-07-09  4:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 15:30 [Qemu-devel] [PATCH for-2.5 0/4] block: replace IOV_MAX with BlockLimits.max_iov Stefan Hajnoczi
2015-07-08 15:30 ` [Qemu-devel] [PATCH for-2.5 1/4] block: add BlockLimits.max_iov field Stefan Hajnoczi
2015-07-09  4:39   ` Peter Lieven [this message]
2015-07-09  9:46     ` Stefan Hajnoczi
2015-07-08 15:31 ` [Qemu-devel] [PATCH for-2.5 2/4] block-backend: add blk_get_max_iov() Stefan Hajnoczi
2015-07-08 15:31 ` [Qemu-devel] [PATCH for-2.5 3/4] block: replace IOV_MAX with BlockLimits.max_iov Stefan Hajnoczi
2015-07-08 15:31 ` [Qemu-devel] [PATCH for-2.5 4/4] block/mirror: replace IOV_MAX with blk_get_max_iov() Stefan Hajnoczi

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=559DFAE6.1020005@kamp.de \
    --to=pl@kamp.de \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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.