[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 4/9] block: treat BDRV_REQ_ALLOCATE as serial
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v6 4/9] block: treat BDRV_REQ_ALLOCATE as serialising |
Date: |
Tue, 16 Jan 2018 14:43:28 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 01/16/2018 07:04 AM, Anton Nefedov wrote:
> The idea is that ALLOCATE requests may overlap with other requests.
> Reuse the existing block layer infrastructure for serialising requests.
> Use the following approach:
> - mark ALLOCATE serialising, so subsequent requests to the area wait
> - ALLOCATE request itself must never wait if another request is in flight
> already. Return EAGAIN, let the caller reconsider.
>
> Signed-off-by: Anton Nefedov <address@hidden>
> ---
> block/io.c | 27 +++++++++++++++++++--------
> 1 file changed, 19 insertions(+), 8 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v6 0/9] qcow2: cluster space preallocation, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 3/9] block: introduce BDRV_REQ_ALLOCATE flag, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 1/9] mirror: inherit supported write/zero flags, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 4/9] block: treat BDRV_REQ_ALLOCATE as serialising, Anton Nefedov, 2018/01/16
- Re: [Qemu-devel] [PATCH v6 4/9] block: treat BDRV_REQ_ALLOCATE as serialising,
Eric Blake <=
- [Qemu-devel] [PATCH v6 2/9] blkverify: set supported write/zero flags, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 9/9] iotest 134: test cluster-misaligned encrypted write, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 7/9] qcow2: move is_zero() up, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 6/9] block: support BDRV_REQ_ALLOCATE in passthrough drivers, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 5/9] file-posix: support BDRV_REQ_ALLOCATE, Anton Nefedov, 2018/01/16
- [Qemu-devel] [PATCH v6 8/9] qcow2: skip writing zero buffers to empty COW areas, Anton Nefedov, 2018/01/16