Pavankumar Kondeti
56ea74ecec
sched: Disable interrupts while holding related_thread_group_lock
There is a potential deadlock condition if interrupts are enabled
while holding the related_thread_group_lock. Prevent this.
---------------- --------------------
CPU 0 CPU 1
--------------- --------------------
check_for_migration() cgroup_file_write(p)
check_for_freq_change() cgroup_attach_task(p)
send_notification() schedtune_attach(p)
read_lock(&related_thread_group_lock) sched_set_group_id(p)
raw_spin_lock_irqsave(
&p->pi_lock, flags)
write_lock_irqsave(
&related_thread_group_lock)
waiting on CPU#0
raw_spin_lock_irqsave(&rq->lock, flags)
raw_spin_unlock_irqrestore(&rq->lock, flags)
--> interrupt()
----> ttwu(p)
-------> waiting for p's pi_lock on CPU#1
Change-Id: I6f0f8f742d6e1b3ff735dcbeabd54ef101329cdf
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-02-07 14:51:23 -08:00
..
2016-11-30 14:50:52 -05:00
2016-10-24 23:42:20 +08:00
2016-10-24 23:41:21 +08:00
2017-02-07 14:50:31 -08:00
2016-07-15 14:54:27 +09:00
2017-02-07 14:50:27 -08:00
2016-08-26 14:42:08 +02:00
2016-12-12 10:21:46 -08:00
2017-02-07 14:50:29 -08:00
2016-11-20 15:03:58 -08:00
2016-10-15 10:03:15 -07:00
2017-02-07 14:51:23 -08:00
2017-02-07 14:50:20 -08:00
2016-11-20 15:03:58 -08:00
2016-04-04 09:46:47 -04:00
2016-09-01 15:55:56 -07:00
2016-10-04 14:21:41 -07:00
2016-07-29 17:54:17 -07:00
2016-06-27 11:01:00 -04:00
2016-10-04 14:21:41 -07:00
2016-06-06 20:16:18 +10:00
2016-06-21 15:03:36 -04:00
2016-10-24 23:41:21 +08:00
2017-02-07 14:50:21 -08:00
2016-10-24 23:41:21 +08:00
2016-06-30 18:05:09 -05:00
2016-11-22 12:33:43 +01:00
2017-02-07 14:51:11 -08:00
2016-07-28 16:07:41 -07:00
2016-09-05 17:20:18 +02:00
2016-10-07 18:46:30 -07:00
2016-10-11 15:06:33 -07:00
2016-08-05 09:00:54 -04:00
2016-03-15 16:55:16 -07:00
2016-12-07 17:10:00 -08:00
2016-08-02 19:35:31 -04:00
2016-09-01 17:52:01 -07:00
2016-08-02 19:35:27 -04:00
2016-10-11 15:06:31 -07:00
2016-08-02 19:35:30 -04:00
2016-10-11 15:06:33 -07:00
2016-08-08 13:18:58 -05:00
2016-09-09 17:34:46 -07:00
2016-04-11 22:43:43 +01:00
2016-11-29 16:01:30 -08:00
2016-09-19 21:44:30 +02:00
2016-10-11 15:06:32 -07:00
2016-09-22 20:00:36 -05:00
2016-05-27 15:26:11 -07:00
2016-07-15 10:41:42 +02:00
2016-10-19 08:31:25 -07:00
2016-10-11 15:06:32 -07:00
2016-04-14 12:56:09 -07:00
2016-08-30 16:12:46 -07:00
2016-09-14 21:28:11 +02:00
2017-02-07 14:50:30 -08:00
2017-02-07 14:50:51 -08:00
2016-03-01 20:36:56 +01:00
2016-10-21 15:45:47 -06:00
2016-10-03 13:39:00 -07:00
2016-09-13 14:41:36 +02:00
2016-10-24 23:41:21 +08:00
2017-01-11 13:57:41 -08:00
2017-02-07 14:51:21 -08:00
2016-08-02 19:35:02 -04:00
2016-11-03 16:55:58 -04:00
2016-08-22 10:01:49 -07:00
2016-03-22 15:36:02 -07:00
2016-02-29 09:53:09 +01:00
2016-08-31 07:28:35 -05:00
2016-10-07 18:46:30 -07:00
2016-09-05 13:52:39 +02:00
2016-09-22 20:00:36 -05:00
2016-09-22 20:00:36 -05:00
2017-02-07 14:51:14 -08:00
2016-03-02 10:28:47 -05:00
2016-10-11 15:06:33 -07:00