[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/2] nbd: support large NBD requests
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 0/2] nbd: support large NBD requests |
Date: |
Thu, 02 May 2013 19:22:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
Il 02/05/2013 14:23, Stefan Hajnoczi ha scritto:
> These patches switch from fixed-size 1 MB data buffers to dynamically sized
> buffers in NBD. This is necessary because the Linux nbd driver now allows up
> to 32 MB request size.
>
> Patch 1 gets rid of the request freelist, which becomes pointless when data
> buffers are no longer reused.
>
> Patch 2 dynamically sizes the data buffer.
>
> Stefan Hajnoczi (2):
> nbd: use g_slice_new() instead of a freelist
> nbd: support large NBD requests
>
> include/block/nbd.h | 3 ++-
> nbd.c | 36 +++++++++++++++---------------------
> 2 files changed, 17 insertions(+), 22 deletions(-)
>
The limit is now 0.5 GB per NBD device. It's quite a lot, but still
bearable and should be lower usually.
Reviewed-by: Paolo Bonzini <address@hidden>
Paolo