Re: [PATCH 3/3] userfaultfd: selftest: recycle lock threads first

2018-09-29 Thread Mike Rapoport
On Sat, Sep 29, 2018 at 04:43:11PM +0800, Peter Xu wrote: > Now we recycle the uffd servicing threads earlier than the lock > threads. It might happen that when the lock thread is still blocked at > a pthread mutex lock while the servicing thread has already quitted for > the cpu so the lock threa

[PATCH 3/3] userfaultfd: selftest: recycle lock threads first

2018-09-29 Thread Peter Xu
Now we recycle the uffd servicing threads earlier than the lock threads. It might happen that when the lock thread is still blocked at a pthread mutex lock while the servicing thread has already quitted for the cpu so the lock thread will be blocked forever and hang the test program. To fix the p