]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/jfs/super.c
push BKL down into ->put_super
[net-next-2.6.git] / fs / jfs / super.c
index d9b0e92b36021f235b00fa9549c865de5eee26af..3eb13adf38623f444766ad085e0720c47284dd51 100644 (file)
@@ -183,6 +183,9 @@ static void jfs_put_super(struct super_block *sb)
        int rc;
 
        jfs_info("In jfs_put_super");
+
+       lock_kernel();
+
        rc = jfs_umount(sb);
        if (rc)
                jfs_err("jfs_umount failed with return code %d", rc);
@@ -195,6 +198,8 @@ static void jfs_put_super(struct super_block *sb)
        sbi->direct_inode = NULL;
 
        kfree(sbi);
+
+       unlock_kernel();
 }
 
 enum {