diff options
author | Eric Blake | 2016-06-24 00:37:08 +0200 |
---|---|---|
committer | Kevin Wolf | 2016-07-05 16:46:24 +0200 |
commit | 476b923c32ece0e268580776aaf1fab4ab4459a8 (patch) | |
tree | bab15893bb5e64e5d1a89dbbbd75f1564268ad43 /hw/scsi/scsi-generic.c | |
parent | block: Fix harmless off-by-one in bdrv_aligned_preadv() (diff) | |
download | qemu-476b923c32ece0e268580776aaf1fab4ab4459a8.tar.gz qemu-476b923c32ece0e268580776aaf1fab4ab4459a8.tar.xz qemu-476b923c32ece0e268580776aaf1fab4ab4459a8.zip |
nbd: Allow larger requests
The NBD layer was breaking up request at a limit of 2040 sectors
(just under 1M) to cater to old qemu-nbd. But the server limit
was raised to 32M in commit 2d8214885 to match the kernel, more
than three years ago; and the upstream NBD Protocol is proposing
documentation that without any explicit communication to state
otherwise, a client should be able to safely assume that a 32M
transaction will work. It is time to rely on the larger sizing,
and any downstream distro that cares about maximum
interoperability to older qemu-nbd servers can just tweak the
value of #define NBD_MAX_SECTORS.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions