mirror of
git://github.com/lxc/lxc
synced 2025-09-01 12:39:49 +00:00
syscall_wrappers: fix core scheduling creation helper naming
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -1564,7 +1564,7 @@ static int core_scheduling(struct lxc_handler *handler)
|
|||||||
if (!(handler->ns_clone_flags & CLONE_NEWPID))
|
if (!(handler->ns_clone_flags & CLONE_NEWPID))
|
||||||
return syserror_set(-EINVAL, "Core scheduling currently requires a separate pid namespace");
|
return syserror_set(-EINVAL, "Core scheduling currently requires a separate pid namespace");
|
||||||
|
|
||||||
ret = core_scheduling_cookie_create_thread(handler->pid);
|
ret = core_scheduling_cookie_create_threadgroup(handler->pid);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (ret == -EINVAL)
|
if (ret == -EINVAL)
|
||||||
return sysinfo("The kernel does not support core scheduling");
|
return sysinfo("The kernel does not support core scheduling");
|
||||||
|
@@ -380,7 +380,7 @@ static inline __u64 core_scheduling_cookie_get(pid_t pid)
|
|||||||
return cookie;
|
return cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int core_scheduling_cookie_create_thread(pid_t pid)
|
static inline int core_scheduling_cookie_create_threadgroup(pid_t pid)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user