Qais Yousef
e65855a52b
sched/uclamp: Fix a deadlock when enabling uclamp static key
...
The following splat was caught when setting uclamp value of a task:
BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:49
cpus_read_lock+0x68/0x130
static_key_enable+0x1c/0x38
__sched_setscheduler+0x900/0xad8
Fix by ensuring we enable the key outside of the critical section in
__sched_setscheduler()
Fixes: 46609ce22703 ("sched/uclamp: Protect uclamp fast path code with static key")
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200716110347.19553-4-qais.yousef@arm.com
2020-07-29 13:51:47 +02:00
..
2020-07-10 18:16:22 -07:00
2020-07-07 13:34:11 -07:00
2020-04-07 10:43:42 -07:00
2020-07-09 20:09:28 -07:00
2020-07-14 15:46:32 +02:00
2020-06-09 09:54:46 -07:00
2020-06-14 01:57:21 +09:00
2020-07-17 23:30:43 +02:00
2020-06-11 20:04:01 +02:00
2020-05-11 00:31:38 +02:00
2020-06-13 10:05:47 -07:00
2020-06-14 01:57:21 +09:00
2020-06-21 20:47:20 -07:00
2020-07-05 12:21:28 -07:00
2020-07-29 13:51:47 +02:00
2020-07-22 10:22:04 +02:00
2020-06-25 18:27:40 -07:00
2020-03-25 11:50:48 +01:00
2020-06-09 09:39:14 -07:00
2020-03-23 18:19:06 +01:00
2020-04-06 08:58:42 -07:00
2020-06-02 17:13:37 -07:00
2020-04-22 15:23:10 -04:00
2020-04-22 15:23:10 -04:00
2020-05-20 18:09:19 -04:00
2020-05-01 12:35:21 +10:00
2020-02-04 03:05:26 +00:00
2020-06-11 15:14:36 +02:00
2020-05-15 11:44:34 -07:00
2020-06-03 13:06:42 -07:00
2020-04-15 11:21:54 +02:00
2020-05-20 14:44:21 -05:00
2020-06-09 09:39:14 -07:00
2020-04-07 10:43:42 -07:00
2020-06-26 01:05:29 +02:00
2019-10-06 09:11:37 -06:00
2020-06-09 09:39:14 -07:00
2020-06-06 23:42:01 +09:00
2020-06-02 10:59:11 -07:00
2020-06-08 11:05:56 -07:00
2020-05-28 10:54:15 +02:00
2020-07-08 15:59:57 -07:00
2020-03-25 10:04:01 -05:00
2019-12-08 14:37:36 +01:00
2019-11-12 11:35:32 +01:00
2020-06-10 19:14:17 -07:00
2020-01-08 16:32:55 +00:00
2020-06-26 00:27:36 -07:00
2020-01-08 16:32:55 +00:00
2020-01-08 16:32:55 +00:00
2020-04-10 15:36:22 -07:00
2020-07-08 16:00:22 -07:00
2020-07-08 11:38:59 +02:00
2020-04-27 02:07:40 -04:00
2020-06-13 09:56:21 -07:00
2020-07-09 13:09:30 -07:00
2020-06-02 10:59:12 -07:00
2020-06-17 00:33:12 +02:00
2020-06-18 17:09:54 +10:00
2020-06-11 15:14:36 +02:00
2020-06-03 16:27:18 -07:00
2020-04-30 06:40:14 -05:00
2020-02-04 03:05:26 +00:00
2020-01-18 13:51:39 +01:00
2020-05-30 10:34:03 -07:00
2020-06-09 09:39:14 -07:00
2020-05-27 11:10:05 +02:00
2019-12-25 10:41:20 +01:00
2020-06-04 16:14:56 +01:00
2020-04-27 02:07:40 -04:00
2020-06-30 12:18:08 -06:00
2020-07-22 10:22:04 +02:00
2020-06-11 15:15:24 +02:00
2019-11-11 10:30:59 +01:00
2020-01-17 10:19:21 +01:00
2019-11-15 14:38:30 +01:00
2020-06-14 11:39:31 -07:00
2019-11-26 13:03:56 -06:00
2020-01-09 16:42:29 -07:00
2020-06-15 14:10:04 +02:00
2020-06-30 12:18:08 -06:00
2019-12-04 15:18:39 +01:00
2020-03-30 18:06:39 -07:00
2019-12-18 18:07:31 +01:00
2020-04-07 21:51:27 +02:00
2020-05-15 13:48:59 -07:00
2020-02-07 15:34:12 +01:00
2020-05-09 13:57:12 +02:00
2020-06-04 19:06:24 -07:00
2020-04-27 02:07:40 -04:00
2020-05-09 13:57:12 +02:00
2020-06-13 09:56:21 -07:00
2020-06-08 11:05:56 -07:00
2020-06-17 10:57:41 -07:00