Re: [PATCH 07/14] migration/multifd: Simplify locking in sender thread

2024-02-01 Thread Peter Xu
On Wed, Jan 31, 2024 at 05:21:06PM -0300, Fabiano Rosas wrote: > pet...@redhat.com writes: > > > From: Peter Xu > > > > The sender thread will yield the p->mutex before IO starts, trying to not > > block the requester thread. This may be unnecessary lock optimizations, > > because the requester

Re: [PATCH 07/14] migration/multifd: Simplify locking in sender thread

2024-01-31 Thread Fabiano Rosas
pet...@redhat.com writes: > From: Peter Xu > > The sender thread will yield the p->mutex before IO starts, trying to not > block the requester thread. This may be unnecessary lock optimizations, > because the requester can already read pending_job safely even without the > lock, because the requ

[PATCH 07/14] migration/multifd: Simplify locking in sender thread

2024-01-31 Thread peterx
From: Peter Xu The sender thread will yield the p->mutex before IO starts, trying to not block the requester thread. This may be unnecessary lock optimizations, because the requester can already read pending_job safely even without the lock, because the requester is currently the only one who ca