Re: [PATCH v3 1/3] thread-pool: optimize scheduling of completion bottom half

2022-05-17 Thread Stefan Hajnoczi
On Sat, May 14, 2022 at 08:50:10AM +0200, Paolo Bonzini wrote: > The completion bottom half was scheduled within the pool->lock > critical section. That actually results in worse performance, > because the worker thread can run its own small critical section > and go to sleep before the bottom hal

[PATCH v3 1/3] thread-pool: optimize scheduling of completion bottom half

2022-05-14 Thread Paolo Bonzini
The completion bottom half was scheduled within the pool->lock critical section. That actually results in worse performance, because the worker thread can run its own small critical section and go to sleep before the bottom half starts running. Note that this simple change does not produce an imp