[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1301511856-9370-1-git-send-email-matt@console-pimps.org>
Date: Wed, 30 Mar 2011 20:04:16 +0100
From: Matt Fleming <matt@...sole-pimps.org>
To: Hans-Christian Egtvedt <hans-christian.egtvedt@...el.com>
Cc: Oleg Nesterov <oleg@...hat.com>, linux-kernel@...r.kernel.org,
Matt Fleming <matt.fleming@...ux.intel.com>
Subject: [PATCH] avr32: Don't acquire siglock when reading sighand action
From: Matt Fleming <matt.fleming@...ux.intel.com>
There's no need to acquire the siglock when simply reading the action
handler. We would need to lock it if we were modifying the handler or
we were protecting it from modification across function calls, but if
we're just reading it, there's no need to lock it
Signed-off-by: Matt Fleming <matt.fleming@...ux.intel.com>
---
arch/avr32/kernel/traps.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/arch/avr32/kernel/traps.c b/arch/avr32/kernel/traps.c
index b91b204..82f47e6 100644
--- a/arch/avr32/kernel/traps.c
+++ b/arch/avr32/kernel/traps.c
@@ -106,9 +106,7 @@ void _exception(long signr, struct pt_regs *regs, int code,
if (is_global_init(current)) {
__sighandler_t handler;
- spin_lock_irq(¤t->sighand->siglock);
handler = current->sighand->action[signr-1].sa.sa_handler;
- spin_unlock_irq(¤t->sighand->siglock);
if (handler == SIG_DFL) {
/* init has generated a synchronous exception
and it doesn't have a handler for the signal */
--
1.7.4
--
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