Re: [PATCH RT] futex/rtmutex: Cure RT double blocking issue

2017-05-11 Thread Thomas Gleixner
On Thu, 11 May 2017, Wanpeng Li wrote: > 2017-05-09 23:11 GMT+08:00 Thomas Gleixner : > > RT has a problem when the wait on a futex/rtmutex got interrupted by a > > timeout or a signal. task->pi_blocked_on is still set when returning from > > rt_mutex_wait_proxy_lock(). The task must acquire the ha

Re: [PATCH RT] futex/rtmutex: Cure RT double blocking issue

2017-05-10 Thread Wanpeng Li
2017-05-09 23:11 GMT+08:00 Thomas Gleixner : > RT has a problem when the wait on a futex/rtmutex got interrupted by a > timeout or a signal. task->pi_blocked_on is still set when returning from > rt_mutex_wait_proxy_lock(). The task must acquire the hash bucket lock > after this. > > If the hash bu

Re: [PATCH RT] futex/rtmutex: Cure RT double blocking issue

2017-05-09 Thread Steven Rostedt
On Tue, 9 May 2017 17:11:10 +0200 (CEST) Thomas Gleixner wrote: > RT has a problem when the wait on a futex/rtmutex got interrupted by a > timeout or a signal. task->pi_blocked_on is still set when returning from > rt_mutex_wait_proxy_lock(). The task must acquire the hash bucket lock > after thi

[PATCH RT] futex/rtmutex: Cure RT double blocking issue

2017-05-09 Thread Thomas Gleixner
RT has a problem when the wait on a futex/rtmutex got interrupted by a timeout or a signal. task->pi_blocked_on is still set when returning from rt_mutex_wait_proxy_lock(). The task must acquire the hash bucket lock after this. If the hash bucket lock is contended then the BUG_ON(rt_mutex_real_wai