diff --git a/include/linux/sched.h b/include/linux/sched.h index 084de9b70a77..46ef8c75802f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1622,6 +1622,14 @@ static inline unsigned int __task_state_index(unsigned int tsk_state, if (tsk_state == TASK_IDLE) state = TASK_REPORT_IDLE; + /* + * We're lying here, but rather than expose a completely new task state + * to userspace, we can make this appear as if the task has gone through + * a regular rt_mutex_lock() call. + */ + if (tsk_state == TASK_RTLOCK_WAIT) + state = TASK_UNINTERRUPTIBLE; + return fls(state); }