From: Greg Ungerer <gerg@snapgear.com>
To: John Kacur <jkacur@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Frederic Weisbecker <fweisbec@gmail.com>,
Vincent Sanders <vince@simtec.co.uk>, Ingo Molnar <mingo@elte.hu>,
Christoph Hellwig <hch@infradead.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Andrew Morton <akpm@linux-foundation.org>,
Jonathan Corbet <corbet@lwn.net>,
Mike Frysinger <vapier@gentoo.org>,
David Howells <dhowells@redhat.com>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Roman Zippel <zippel@linux-m68k.org>,
Greg Ungerer <gerg@uclinux.org>,
Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Subject: Re: [PATCH 5/6 RFC] arch/m68knommu/kernel/process.c: Remove the BKL from sys_execve
Date: Tue, 13 Oct 2009 20:44:22 +1000 [thread overview]
Message-ID: <4AD45A06.2090606@snapgear.com> (raw)
In-Reply-To: <alpine.LFD.2.00.0910130014520.3658@localhost.localdomain>
Hi John,
On 10/13/2009 08:34 AM, John Kacur wrote:
>> From e36c53d296132bc0ddbf6d9fb43ea5ea56dbd4a2 Mon Sep 17 00:00:00 2001
> From: John Kacur<jkacur@redhat.com>
> Date: Mon, 12 Oct 2009 23:37:28 +0200
> Subject: [PATCH] arch/m68knommu/kernel/process.c: Remove the BKL from sys_execve
>
> This looks like a copy-and-paste of functionality that no-longer needs the bkl.
> Just remove it.
>
> Signed-off-by: John Kacur<jkacur@redhat.com>
Tested and runs fine on m68knommu.
Acked-by: Greg Ungerer <gerg@uclinux.org>
Do you want me to push this into the m68knommu git tree,
for eventual merging into Linus' tree? Or are you going
to push the whole set of patches together?
Regards
Greg
> ---
> arch/m68knommu/kernel/process.c | 5 +----
> 1 files changed, 1 insertions(+), 4 deletions(-)
>
> diff --git a/arch/m68knommu/kernel/process.c b/arch/m68knommu/kernel/process.c
> index 8f8f4ab..5c9ecd4 100644
> --- a/arch/m68knommu/kernel/process.c
> +++ b/arch/m68knommu/kernel/process.c
> @@ -352,15 +352,12 @@ asmlinkage int sys_execve(char *name, char **argv, char **envp)
> char * filename;
> struct pt_regs *regs = (struct pt_regs *)&name;
>
> - lock_kernel();
> filename = getname(name);
> error = PTR_ERR(filename);
> if (IS_ERR(filename))
> - goto out;
> + return error;
> error = do_execve(filename, argv, envp, regs);
> putname(filename);
> -out:
> - unlock_kernel();
> return error;
> }
>
--
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
next prev parent reply other threads:[~2009-10-13 10:45 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alpine.LFD.2.00.0910122350140.3658@localhost.localdomain>
2009-10-12 22:33 ` [PATCH 1/6 RFC] arch/blackfin/kernel/process.c: Remove the BKL from sys_execve John Kacur
2009-10-12 22:33 ` [PATCH 2/6 RFC] arch/frv/kernel/process.c: " John Kacur
2009-10-12 22:34 ` [PATCH 3/6 RFC] arch/h83000/kernel/process.c: Remove " John Kacur
2009-10-12 22:34 ` [PATCH 4/6 RFC] arch/m68k/kernel/process.c: Remove the " John Kacur
2009-10-12 22:34 ` [PATCH 5/6 RFC] arch/m68knommu/kernel/process.c: " John Kacur
2009-10-12 22:35 ` [PATCH 6/6 RFC] arch/mn10300/kernel/process.c: " John Kacur
2009-10-13 16:45 ` David Howells
2009-10-14 15:47 ` [tip:bkl/arch] mn10300: " tip-bot for John Kacur
2009-10-13 10:44 ` Greg Ungerer [this message]
2009-10-13 11:30 ` [PATCH 5/6 RFC] arch/m68knommu/kernel/process.c: " John Kacur
2009-10-14 15:06 ` Thomas Gleixner
2009-10-14 23:39 ` Greg Ungerer
2009-10-14 15:47 ` [tip:bkl/arch] m68knommu: " tip-bot for John Kacur
2009-10-14 15:46 ` [tip:bkl/arch] m68k: " tip-bot for John Kacur
2009-10-14 15:46 ` [tip:bkl/arch] h83000: Remove " tip-bot for John Kacur
2009-10-13 16:26 ` [PATCH 2/6 RFC] arch/frv/kernel/process.c: Remove the " David Howells
2009-10-14 15:46 ` [tip:bkl/arch] frv: " tip-bot for John Kacur
2009-10-12 22:45 ` [PATCH 1/6 RFC] arch/blackfin/kernel/process.c: " Frederic Weisbecker
2009-10-13 7:54 ` Mike Frysinger
2009-10-13 8:27 ` John Kacur
2009-10-13 8:35 ` Mike Frysinger
2009-10-13 8:41 ` John Kacur
2009-10-14 0:30 ` Mike Frysinger
2009-10-14 15:46 ` [tip:bkl/arch] blackfin: " tip-bot for John Kacur
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=4AD45A06.2090606@snapgear.com \
--to=gerg@snapgear.com \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=corbet@lwn.net \
--cc=dhowells@redhat.com \
--cc=fweisbec@gmail.com \
--cc=gerg@uclinux.org \
--cc=hch@infradead.org \
--cc=jkacur@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=vapier@gentoo.org \
--cc=vince@simtec.co.uk \
--cc=yasutake.koichi@jp.panasonic.com \
--cc=ysato@users.sourceforge.jp \
--cc=zippel@linux-m68k.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox