]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: improve CMD_CACHE: use BDRV_REQ_PREFETCH
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 25 Jul 2019 10:05:50 +0000 (13:05 +0300)
committerEric Blake <eblake@redhat.com>
Thu, 15 Aug 2019 18:22:13 +0000 (13:22 -0500)
commit7fa5c5657f11096101f5be18fe1f7395776be5a6
tree3526092b0bcea6fe6897eb6699d61acb65b51fd5
parent99136607b1edb0129d1ebb6ecac21738ad3d9c36
nbd: improve CMD_CACHE: use BDRV_REQ_PREFETCH

This helps to avoid extra io, allocations and memory copying.
We assume here that CMD_CACHE is always used with copy-on-read, as
otherwise it's a noop.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20190725100550.33801-4-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
nbd/server.c