[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 09/18] throttle-groups: protect throttled reques
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH 09/18] throttle-groups: protect throttled requests with a CoMutex |
Date: |
Tue, 16 May 2017 15:47:19 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Thu, May 11, 2017 at 04:41:59PM +0200, Paolo Bonzini wrote:
> Another possibility is to use tg->lock, which we're holding anyway in
> both schedule_next_request and throttle_group_co_io_limits_intercept.
> This would require open-coding the CoQueue however, so I've chosen this
> alternative.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> v1->v2: rename CoMutex [Fam]
>
> block/block-backend.c | 1 +
> block/throttle-groups.c | 12 ++++++++++--
> include/sysemu/block-backend.h | 7 ++-----
> 3 files changed, 13 insertions(+), 7 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- Re: [Qemu-block] [Qemu-devel] [PATCH 06/18] block: access io_plugged with atomic ops, (continued)
- [Qemu-block] [PATCH 10/18] util: add stats64 module, Paolo Bonzini, 2017/05/11
- [Qemu-block] [PATCH 11/18] block: use Stat64 for wr_highest_offset, Paolo Bonzini, 2017/05/11
- [Qemu-block] [PATCH 13/18] block: protect tracked_requests and flush_queue with reqs_lock, Paolo Bonzini, 2017/05/11
- [Qemu-block] [PATCH 12/18] block: access write_gen with atomics, Paolo Bonzini, 2017/05/11
- [Qemu-block] [PATCH 14/18] block: introduce dirty_bitmap_mutex, Paolo Bonzini, 2017/05/11