]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0125-rtmutex-Use-chainwalking-control-enum.patch
WAR:media:i2c:ov5693: add flip and mirror setting
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0125-rtmutex-Use-chainwalking-control-enum.patch
1 From 22cf75deacc5268a800bd4fd9d5f48117e2faa69 Mon Sep 17 00:00:00 2001
2 From: "bmouring@ni.com" <bmouring@ni.com>
3 Date: Tue, 15 Dec 2015 17:07:30 -0600
4 Subject: [PATCH 125/365] rtmutex: Use chainwalking control enum
5
6 In 8930ed80 (rtmutex: Cleanup deadlock detector debug logic),
7 chainwalking control enums were introduced to limit the deadlock
8 detection logic. One of the calls to task_blocks_on_rt_mutex was
9 missed when converting to use the enums.
10
11 Cc: Thomas Gleixner <tglx@linutronix.de>
12 Signed-off-by: Brad Mouring <brad.mouring@ni.com>
13 Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
14 ---
15  kernel/locking/rtmutex.c | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c
19 index f3e3e44..8275f47 100644
20 --- a/kernel/locking/rtmutex.c
21 +++ b/kernel/locking/rtmutex.c
22 @@ -1020,7 +1020,7 @@ static void  noinline __sched rt_spin_lock_slowlock(struct rt_mutex *lock)
23         __set_current_state_no_track(TASK_UNINTERRUPTIBLE);
24         pi_unlock(&self->pi_lock);
25  
26 -       ret = task_blocks_on_rt_mutex(lock, &waiter, self, 0);
27 +       ret = task_blocks_on_rt_mutex(lock, &waiter, self, RT_MUTEX_MIN_CHAINWALK);
28         BUG_ON(ret);
29  
30         for (;;) {
31 -- 
32 2.7.4
33