[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 09/18] throttle-groups: protect throttled reques
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [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
- [Qemu-devel] [PATCH 01/18] block: access copy_on_read with atomic ops, (continued)
- [Qemu-devel] [PATCH 01/18] block: access copy_on_read with atomic ops, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 04/18] block: access serialising_in_flight with atomic ops, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 03/18] block: access io_limits_disabled with atomic ops, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 02/18] block: access quiesce_counter with atomic ops, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 05/18] block: access wakeup with atomic ops, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 09/18] throttle-groups: protect throttled requests with a CoMutex, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 06/18] block: access io_plugged with atomic ops, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 08/18] throttle-groups: do not use qemu_co_enter_next, Paolo Bonzini, 2017/05/11
- [Qemu-devel] [PATCH 07/18] throttle-groups: only start one coroutine from drained_begin, Paolo Bonzini, 2017/05/11