uti: futex: Propagate -ERESTARTSYS returned by wait_event_interruptible()
Change-Id: Id36c4df0e0a8e1f64b12c635c0502f63552ba50b
This commit is contained in:
@@ -871,8 +871,10 @@ retry:
|
|||||||
goto out_put_key;
|
goto out_put_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hassigpending(cpu_local_var(current))) {
|
/* RIKEN: futex_wait_queue_me() returns -ERESTARTSYS when waiting on Linux CPU and woken up by signal */
|
||||||
|
if (hassigpending(cpu_local_var_with_override(current, clv_override)) || time_remain == -ERESTARTSYS) {
|
||||||
ret = -EINTR;
|
ret = -EINTR;
|
||||||
|
uti_dkprintf("%s: tid=%d woken up by signal\n", __FUNCTION__, cpu_local_var_with_override(current, clv_override)->tid);
|
||||||
goto out_put_key;
|
goto out_put_key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user