[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090310162026.GA9354@us.ibm.com>
Date: Tue, 10 Mar 2009 11:20:26 -0500
From: "Serge E. Hallyn" <serue@...ibm.com>
To: Nathan Lynch <ntl@...ox.com>
Cc: Dave Hansen <dave@...ux.vnet.ibm.com>,
Alexey@...p1.linux-foundation.org,
containers <containers@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Christoph Hellwig <hch@...radead.org>,
Ingo Molnar <mingo@...e.hu>, Dobriyan <adobriyan@...il.com>
Subject: Re: [RFC][PATCH 00/11] track files for checkpointability
Quoting Nathan Lynch (ntl@...ox.com):
> Please consider this and a following patch.
>
> >From a0fb96aa41c4d360559013cfd7f32f07f449c1c4 Mon Sep 17 00:00:00 2001
> From: Nathan Lynch <ntl@...ox.com>
> Date: Mon, 9 Mar 2009 22:23:02 -0500
> Subject: [PATCH] checkpoint: make files_deny_checkpointing print task name and pid
>
> This lets the developer know *which* task performed an action that
> prevents checkpoint.
>
>
> Signed-off-by: Nathan Lynch <ntl@...ox.com>
> ---
> fs/file.c | 2 +-
> fs/open.c | 2 +-
> include/linux/checkpoint.h | 13 +++++++------
> 3 files changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/fs/file.c b/fs/file.c
> index 0501af6..fcb2803 100644
> --- a/fs/file.c
> +++ b/fs/file.c
> @@ -299,7 +299,7 @@ static void __scan_files_for_cr(struct files_struct *files)
> continue;
> if (cr_file_supported(f))
> continue;
> - files_deny_checkpointing(files);
> + files_deny_checkpointing(current, files);
Ah but you can't do this, because __scan_files_for_cr is called
from dupfd which is called during copy_files, right?
So you'll need to send the task into __scan_files_for_cr, right?
I do wholeheartedly agree with the idea though.
thanks,
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists