aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-09-16 09:35:54 -0400
committerArnd Bergmann <arnd@arndb.de>2010-10-04 15:10:48 -0400
commit77f2fe036cd51300c80d1aca76bcf23a09977f13 (patch)
tree08598ae2b51e8351cf280fd23e4bd7ef22757ef9 /fs/afs
parentcdbd2b013d2814ad39e893316943fb58e6d9ec23 (diff)
BKL: Remove BKL from afs
The BKL is only used in put_super and fill_super, which are both 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: linux-afs@lists.infradead.org Cc: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/super.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c
index 6c2fef44d385..eacf76d98ae0 100644
--- a/fs/afs/super.c
+++ b/fs/afs/super.c
@@ -19,7 +19,6 @@
19#include <linux/mount.h> 19#include <linux/mount.h>
20#include <linux/init.h> 20#include <linux/init.h>
21#include <linux/slab.h> 21#include <linux/slab.h>
22#include <linux/smp_lock.h>
23#include <linux/fs.h> 22#include <linux/fs.h>
24#include <linux/pagemap.h> 23#include <linux/pagemap.h>
25#include <linux/parser.h> 24#include <linux/parser.h>
@@ -302,15 +301,12 @@ static int afs_fill_super(struct super_block *sb, void *data)
302 struct inode *inode = NULL; 301 struct inode *inode = NULL;
303 int ret; 302 int ret;
304 303
305 lock_kernel();
306
307 _enter(""); 304 _enter("");
308 305
309 /* allocate a superblock info record */ 306 /* allocate a superblock info record */
310 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL); 307 as = kzalloc(sizeof(struct afs_super_info), GFP_KERNEL);
311 if (!as) { 308 if (!as) {
312 _leave(" = -ENOMEM"); 309 _leave(" = -ENOMEM");
313 unlock_kernel();
314 return -ENOMEM; 310 return -ENOMEM;
315 } 311 }
316 312
@@ -344,7 +340,6 @@ static int afs_fill_super(struct super_block *sb, void *data)
344 sb->s_root = root; 340 sb->s_root = root;
345 341
346 _leave(" = 0"); 342 _leave(" = 0");
347 unlock_kernel();
348 return 0; 343 return 0;
349 344
350error_inode: 345error_inode:
@@ -358,7 +353,6 @@ error:
358 sb->s_fs_info = NULL; 353 sb->s_fs_info = NULL;
359 354
360 _leave(" = %d", ret); 355 _leave(" = %d", ret);
361 unlock_kernel();
362 return ret; 356 return ret;
363} 357}
364 358
@@ -458,12 +452,8 @@ static void afs_put_super(struct super_block *sb)
458 452
459 _enter(""); 453 _enter("");
460 454
461 lock_kernel();
462
463 afs_put_volume(as->volume); 455 afs_put_volume(as->volume);
464 456
465 unlock_kernel();
466
467 _leave(""); 457 _leave("");
468} 458}
469 459