* [PATCH] use simpler test_task_thread to test current ti flags
@ 2010-01-28 23:33 Serge E. Hallyn
[not found] ` <20100128233311.GA9890-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2010-01-28 23:33 UTC (permalink / raw)
To: Oren Laadan; +Cc: Linux Containers
This ought to be folded into the
'fix 31-bit s390 checkpoint/restart wrappers'
patch which I sent earlier today. Not a bug without it, just
not as nice.
Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
arch/s390/kernel/checkpoint.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/s390/kernel/checkpoint.c b/arch/s390/kernel/checkpoint.c
index 8ec12c6..60ba04d 100644
--- a/arch/s390/kernel/checkpoint.c
+++ b/arch/s390/kernel/checkpoint.c
@@ -148,7 +148,8 @@ int checkpoint_mm_context(struct ckpt_ctx *ctx, struct mm_struct *mm)
int restore_thread(struct ckpt_ctx *ctx)
{
- if (test_tsk_thread_flag(current, TIF_31BIT)) {
+ /* a 31-bit task cannot call sys_restart right now */
+ if (test_thread_flag(TIF_31BIT)) {
ckpt_err(ctx, -EINVAL, "restart from 31-bit task\n");
return -EINVAL;
}
--
1.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] use simpler test_task_thread to test current ti flags
[not found] ` <20100128233311.GA9890-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2010-02-05 3:31 ` Oren Laadan
0 siblings, 0 replies; 2+ messages in thread
From: Oren Laadan @ 2010-02-05 3:31 UTC (permalink / raw)
To: Serge E. Hallyn; +Cc: Linux Containers
Got it.
Serge E. Hallyn wrote:
> This ought to be folded into the
> 'fix 31-bit s390 checkpoint/restart wrappers'
> patch which I sent earlier today. Not a bug without it, just
> not as nice.
>
> Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> ---
> arch/s390/kernel/checkpoint.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/arch/s390/kernel/checkpoint.c b/arch/s390/kernel/checkpoint.c
> index 8ec12c6..60ba04d 100644
> --- a/arch/s390/kernel/checkpoint.c
> +++ b/arch/s390/kernel/checkpoint.c
> @@ -148,7 +148,8 @@ int checkpoint_mm_context(struct ckpt_ctx *ctx, struct mm_struct *mm)
>
> int restore_thread(struct ckpt_ctx *ctx)
> {
> - if (test_tsk_thread_flag(current, TIF_31BIT)) {
> + /* a 31-bit task cannot call sys_restart right now */
> + if (test_thread_flag(TIF_31BIT)) {
> ckpt_err(ctx, -EINVAL, "restart from 31-bit task\n");
> return -EINVAL;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-05 3:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 23:33 [PATCH] use simpler test_task_thread to test current ti flags Serge E. Hallyn
[not found] ` <20100128233311.GA9890-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-05 3:31 ` Oren Laadan
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.