|
@@ -4600,12 +4600,8 @@ recheck:
|
|
|
*/
|
|
|
if (user && !capable(CAP_SYS_NICE)) {
|
|
|
if (rt_policy(policy)) {
|
|
|
- unsigned long rlim_rtprio;
|
|
|
-
|
|
|
- if (!lock_task_sighand(p, &flags))
|
|
|
- return -ESRCH;
|
|
|
- rlim_rtprio = task_rlimit(p, RLIMIT_RTPRIO);
|
|
|
- unlock_task_sighand(p, &flags);
|
|
|
+ unsigned long rlim_rtprio =
|
|
|
+ task_rlimit(p, RLIMIT_RTPRIO);
|
|
|
|
|
|
/* can't set/change the rt policy */
|
|
|
if (policy != p->policy && !rlim_rtprio)
|