提交 73bf1054 编写于 作者: Z Zheng Zucheng 提交者: Zheng Zengkai

sched: bugfix setscheduler unlock cpuset_rwsem

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4BUSF
CVE: NA

--------------------------------
Signed-off-by: NZheng Zucheng <zhengzucheng@huawei.com>
Reviewed-by: NChen Hui <judy.chenhui@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 b2cf80eb
......@@ -5552,8 +5552,8 @@ static int __sched_setscheduler(struct task_struct *p,
* isolation will be invalid, so return -EINVAL in this case.
*/
if (unlikely(task_group(p)->qos_level == -1 && !idle_policy(policy))) {
task_rq_unlock(rq, p, &rf);
return -EINVAL;
retval = -EINVAL;
goto unlock;
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册