lkml.org 
[lkml]   [2010]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 06/12] BKL: Remove BKL from capifs
Date
The BKL is only used in fill_super, which is  protected by the superblocks
s_umount rw_semaphore. Therefore it is safe to remove the BKL entirely.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: netdev@vger.kernel.org
---
drivers/isdn/capi/capifs.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c
index c559b52..b0dcdbc 100644
--- a/drivers/isdn/capi/capifs.c
+++ b/drivers/isdn/capi/capifs.c
@@ -17,7 +17,6 @@
#include <linux/init.h>
#include <linux/ctype.h>
#include <linux/sched.h> /* current */
-#include <linux/smp_lock.h> /* For lock_kernel() */

#include "capifs.h"

@@ -100,8 +99,6 @@ capifs_fill_super(struct super_block *s, void *data, int silent)
{
struct inode * inode;

- lock_kernel();
-
s->s_blocksize = 1024;
s->s_blocksize_bits = 10;
s->s_magic = CAPIFS_SUPER_MAGIC;
@@ -119,15 +116,12 @@ capifs_fill_super(struct super_block *s, void *data, int silent)
inode->i_nlink = 2;

s->s_root = d_alloc_root(inode);
- if (s->s_root) {
- unlock_kernel();
+ if (s->s_root)
return 0;
- }

printk("capifs: get root dentry failed\n");
iput(inode);
fail:
- unlock_kernel();
return -ENOMEM;
}

--
1.7.1


\
 
 \ /
  Last update: 2010-09-16 19:51    [W:0.113 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site