[dpdk-dev] [PATCH v3 16/22] net/ena: handle spurious wakeups in ENA_WAIT_EVENT

2021-05-06 Thread Michal Krawczyk
From: Stanislaw Kardach pthread_cond_timedwait() may spuriously wakeup according to POSIX. Therefore it is required to check whether predicate is actually true before finishing the waiting loop. Signed-off-by: Stanislaw Kardach Reviewed-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-

Re: [dpdk-dev] [PATCH v3 16/22] net/ena: handle spurious wakeups in ENA_WAIT_EVENT

2021-05-07 Thread Ferruh Yigit
On 5/6/2021 3:25 PM, Michal Krawczyk wrote: > From: Stanislaw Kardach > > pthread_cond_timedwait() may spuriously wakeup according to POSIX. > Therefore it is required to check whether predicate is actually true > before finishing the waiting loop. > > Signed-off-by: Stanislaw Kardach > Reviewe