[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1157995490.26324.106.camel@localhost.localdomain>
Date: Mon, 11 Sep 2006 10:24:50 -0700
From: Dave Hansen <haveblue@...ibm.com>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: Andrew Morton <akpm@...l.org>,
Linux Containers <containers@...ts.osdl.org>,
linux-kernel@...r.kernel.org, Alan Cox <alan@...rguk.ukuu.org.uk>,
Oleg Nesterov <oleg@...sign.ru>
Subject: Re: [PATCH] vt: Make vt_pid a struct pid (making it pid wrap
around safe).
On Sun, 2006-09-10 at 06:41 -0600, Eric W. Biederman wrote:
>
> - vc->vt_pid = current->pid;
> + put_pid(xchg(&vc->vt_pid, get_pid(task_pid(current))));
Would it make any sense to have a get_current_pid()? It might reduce
the horribly confusing number of parenthesis there.
-- Dave
-
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