qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu AIO worker threads change causes Guest OS hangup


From: Paolo Bonzini
Subject: Re: [Qemu-devel] qemu AIO worker threads change causes Guest OS hangup
Date: Tue, 1 Mar 2016 22:01:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0


On 01/03/2016 19:45, Huaicheng Li wrote:
> 
> * Is it safe to call `qemu_paio_submit` from one worker thread? Since
> all request_access accesses are protected by lock, I think this is
> OK.

No, it's not possible.  The "all" list in thread-pool.c is protected
with the AioContext lock, not with the thread pool lock.  This is done
because the worker threads only care about the queued request list, not
about active or completed requests.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]