[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 3/4] coroutine/mutex: Store the coroutine in the CoWaitRe
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH 3/4] coroutine/mutex: Store the coroutine in the CoWaitRecord only once |
Date: |
Tue, 9 Mar 2021 12:11:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 3/9/21 11:21 AM, David Edmondson wrote:
> When taking the slow path for mutex acquisition, set the coroutine
> value in the CoWaitRecord in push_waiter(), rather than both there and
> in the caller.
>
> Signed-off-by: David Edmondson <david.edmondson@oracle.com>
> ---
> util/qemu-coroutine-lock.c | 1 -
> 1 file changed, 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
- Re: [RFC PATCH 4/4] coroutine/rwlock: Wake writers in preference to readers, (continued)
[RFC PATCH 3/4] coroutine/mutex: Store the coroutine in the CoWaitRecord only once, David Edmondson, 2021/03/09