X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=kernel%2Frtmutex.c;h=6522ae5b14a2ad7aca5cde919c3a5f1d305c6fd6;hb=afd38009cc3acd36d41f349a669ad5825d695b1f;hp=8cd9bd2cdb34243a89c45102708abdcc2c7cbdbd;hpb=f79e3185dd0f8650022518d7624c876d8929061b;p=firefly-linux-kernel-4.4.55.git diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index 8cd9bd2cdb34..6522ae5b14a2 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -185,7 +185,7 @@ static int rt_mutex_adjust_prio_chain(struct task_struct *task, prev_max = max_lock_depth; printk(KERN_WARNING "Maximum lock depth %d reached " "task: %s (%d)\n", max_lock_depth, - top_task->comm, top_task->pid); + top_task->comm, task_pid_nr(top_task)); } put_task_struct(task); @@ -630,9 +630,12 @@ rt_mutex_slowlock(struct rt_mutex *lock, int state, set_current_state(state); /* Setup the timer, when timeout != NULL */ - if (unlikely(timeout)) + if (unlikely(timeout)) { hrtimer_start(&timeout->timer, timeout->timer.expires, HRTIMER_MODE_ABS); + if (!hrtimer_active(&timeout->timer)) + timeout->task = NULL; + } for (;;) { /* Try to acquire the lock: */