Skip to content

Commit 12e750d

Browse files
arndbmattst88
authored andcommitted
alpha: kill big kernel lock
All uses of the BKL on alpha are totally bogus, nothing is really protected by this. Remove the remaining users so we don't have to mark alpha as 'depends on BKL'. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: linux-alpha@vger.kernel.org Signed-off-by: Matt Turner <mattst88@gmail.com>
1 parent b97f897 commit 12e750d

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎arch/alpha/kernel/osf_sys.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <linux/kernel.h>
1616
#include <linux/mm.h>
1717
#include <linux/smp.h>
18-
#include <linux/smp_lock.h>
1918
#include <linux/stddef.h>
2019
#include <linux/syscalls.h>
2120
#include <linux/unistd.h>
@@ -69,7 +68,6 @@ SYSCALL_DEFINE4(osf_set_program_attributes, unsigned long, text_start,
6968
{
7069
struct mm_struct *mm;
7170

72-
lock_kernel();
7371
mm = current->mm;
7472
mm->end_code = bss_start + bss_len;
7573
mm->start_brk = bss_start + bss_len;
@@ -78,7 +76,6 @@ SYSCALL_DEFINE4(osf_set_program_attributes, unsigned long, text_start,
7876
printk("set_program_attributes(%lx %lx %lx %lx)\n",
7977
text_start, text_len, bss_start, bss_len);
8078
#endif
81-
unlock_kernel();
8279
return 0;
8380
}
8481

@@ -517,7 +514,6 @@ SYSCALL_DEFINE2(osf_proplist_syscall, enum pl_code, code,
517514
long error;
518515
int __user *min_buf_size_ptr;
519516

520-
lock_kernel();
521517
switch (code) {
522518
case PL_SET:
523519
if (get_user(error, &args->set.nbytes))
@@ -547,7 +543,6 @@ SYSCALL_DEFINE2(osf_proplist_syscall, enum pl_code, code,
547543
error = -EOPNOTSUPP;
548544
break;
549545
};
550-
unlock_kernel();
551546
return error;
552547
}
553548

‎arch/alpha/kernel/traps.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <linux/sched.h>
1414
#include <linux/tty.h>
1515
#include <linux/delay.h>
16-
#include <linux/smp_lock.h>
1716
#include <linux/module.h>
1817
#include <linux/init.h>
1918
#include <linux/kallsyms.h>
@@ -623,7 +622,6 @@ do_entUna(void * va, unsigned long opcode, unsigned long reg,
623622
return;
624623
}
625624

626-
lock_kernel();
627625
printk("Bad unaligned kernel access at %016lx: %p %lx %lu\n",
628626
pc, va, opcode, reg);
629627
do_exit(SIGSEGV);
@@ -646,7 +644,6 @@ do_entUna(void * va, unsigned long opcode, unsigned long reg,
646644
* Yikes! No one to forward the exception to.
647645
* Since the registers are in a weird format, dump them ourselves.
648646
*/
649-
lock_kernel();
650647

651648
printk("%s(%d): unhandled unaligned exception\n",
652649
current->comm, task_pid_nr(current));

0 commit comments

Comments
 (0)