From: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
To: Daniel Hokka Zakrisson <daniel-nym3zxDgnZcAvxtiuMwx3w@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org,
oleg-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org,
xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH 1/1] signal: Introduce kill_pid_ns_info
Date: Thu, 17 Jul 2008 14:10:05 -0700 [thread overview]
Message-ID: <20080717141005.5534fbc2.akpm@linux-foundation.org> (raw)
In-Reply-To: <58550.192.168.102.6.1216323456.squirrel@intranet>
On Thu, 17 Jul 2008 21:37:36 +0200 (CEST)
"Daniel Hokka Zakrisson" <daniel-nym3zxDgnZcAvxtiuMwx3w@public.gmane.org> wrote:
> Author: Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
>
> Implement the basic helper function that walks all of the processes in a
> pid namespace and sends them all a signal.
>
> Both locations that could use this functions are also updated to use this
> function.
>
> I use find_ge_pid instead of for_each_process because it has a chance of
> not touching every process in the system.
>
> [daniel-nym3zxDgnZcAvxtiuMwx3w@public.gmane.org: Optimize away nr <= 1 check, against latest Linus tree]
> Signed-off-by: Eric W. Biederman <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
> Signed-off-by: Daniel Hokka Zakrisson <daniel-nym3zxDgnZcAvxtiuMwx3w@public.gmane.org>
>
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index ba2f859..83597f8 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -1778,6 +1778,8 @@ extern void release_task(struct task_struct * p);
> extern int send_sig_info(int, struct siginfo *, struct task_struct *);
> extern int force_sigsegv(int, struct task_struct *);
Space-stuffed
> extern int force_sig_info(int, struct siginfo *, struct task_struct *);
> +extern int __kill_pid_ns_info(int sig, struct siginfo *info, struct
> pid_namespace *ns);
word-wrapped
> +extern int kill_pid_ns_info(int sig, struct siginfo *info, struct
> pid_namespace *ns);
> extern int __kill_pgrp_info(int sig, struct siginfo *info, struct pid
> *pgrp);
> extern int kill_pid_info(int sig, struct siginfo *info, struct pid *pid);
> extern int kill_pid_info_as_uid(int, struct siginfo *, struct pid *,
> uid_t, uid_t, u32);
> diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
> index 98702b4..9226423 100644
> --- a/kernel/pid_namespace.c
> +++ b/kernel/pid_namespace.c
> @@ -153,29 +153,14 @@ void free_pid_ns(struct kref *kref)
>
> void zap_pid_ns_processes(struct pid_namespace *pid_ns)
> {
> - int nr;
> int rc;
but at least the tabs weren't replaced with spaces!
Fix and resend, please.
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@linux-foundation.org>
To: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Cc: ebiederm@xmission.com, xemul@openvz.org, sukadev@us.ibm.com,
linux-kernel@vger.kernel.org,
containers@lists.linux-foundation.org, oleg@tv-sign.ru
Subject: Re: [PATCH 1/1] signal: Introduce kill_pid_ns_info
Date: Thu, 17 Jul 2008 14:10:05 -0700 [thread overview]
Message-ID: <20080717141005.5534fbc2.akpm@linux-foundation.org> (raw)
In-Reply-To: <58550.192.168.102.6.1216323456.squirrel@intranet>
On Thu, 17 Jul 2008 21:37:36 +0200 (CEST)
"Daniel Hokka Zakrisson" <daniel@hozac.com> wrote:
> Author: Eric W. Biederman <ebiederm@xmission.com>
>
> Implement the basic helper function that walks all of the processes in a
> pid namespace and sends them all a signal.
>
> Both locations that could use this functions are also updated to use this
> function.
>
> I use find_ge_pid instead of for_each_process because it has a chance of
> not touching every process in the system.
>
> [daniel@hozac.com: Optimize away nr <= 1 check, against latest Linus tree]
> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
> Signed-off-by: Daniel Hokka Zakrisson <daniel@hozac.com>
>
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index ba2f859..83597f8 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -1778,6 +1778,8 @@ extern void release_task(struct task_struct * p);
> extern int send_sig_info(int, struct siginfo *, struct task_struct *);
> extern int force_sigsegv(int, struct task_struct *);
Space-stuffed
> extern int force_sig_info(int, struct siginfo *, struct task_struct *);
> +extern int __kill_pid_ns_info(int sig, struct siginfo *info, struct
> pid_namespace *ns);
word-wrapped
> +extern int kill_pid_ns_info(int sig, struct siginfo *info, struct
> pid_namespace *ns);
> extern int __kill_pgrp_info(int sig, struct siginfo *info, struct pid
> *pgrp);
> extern int kill_pid_info(int sig, struct siginfo *info, struct pid *pid);
> extern int kill_pid_info_as_uid(int, struct siginfo *, struct pid *,
> uid_t, uid_t, u32);
> diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
> index 98702b4..9226423 100644
> --- a/kernel/pid_namespace.c
> +++ b/kernel/pid_namespace.c
> @@ -153,29 +153,14 @@ void free_pid_ns(struct kref *kref)
>
> void zap_pid_ns_processes(struct pid_namespace *pid_ns)
> {
> - int nr;
> int rc;
but at least the tabs weren't replaced with spaces!
Fix and resend, please.
next prev parent reply other threads:[~2008-07-17 21:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-17 19:37 [PATCH 1/1] signal: Introduce kill_pid_ns_info Daniel Hokka Zakrisson
2008-07-17 21:10 ` Andrew Morton [this message]
2008-07-17 21:10 ` Andrew Morton
[not found] ` <20080717141005.5534fbc2.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-07-17 21:54 ` [PATCH] " Daniel Hokka Zakrisson
2008-07-17 21:54 ` Daniel Hokka Zakrisson
-- strict thread matches above, loose matches on Subject: below --
2008-07-17 19:37 [PATCH 1/1] " Daniel Hokka Zakrisson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080717141005.5534fbc2.akpm@linux-foundation.org \
--to=akpm-de/tnxtf+jlsfhdxvbkv3wd2fqjk+8+b@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=daniel-nym3zxDgnZcAvxtiuMwx3w@public.gmane.org \
--cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=oleg-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org \
--cc=xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.