]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dlm: remove bkl
authorDavid Teigland <teigland@redhat.com>
Thu, 4 Sep 2008 17:51:20 +0000 (12:51 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 4 Sep 2008 17:55:13 +0000 (12:55 -0500)
BLK from recent pushdown is not needed.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/user.c

index 81627b502a566fa45e144ca9ec096850ec4d6221..b3832c67194af2573849df32b337d2096994a082 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/poll.h>
 #include <linux/signal.h>
 #include <linux/spinlock.h>
-#include <linux/smp_lock.h>
 #include <linux/dlm.h>
 #include <linux/dlm_device.h>
 
@@ -637,17 +636,13 @@ static int device_open(struct inode *inode, struct file *file)
        struct dlm_user_proc *proc;
        struct dlm_ls *ls;
 
-       lock_kernel();
        ls = dlm_find_lockspace_device(iminor(inode));
-       if (!ls) {
-               unlock_kernel();
+       if (!ls)
                return -ENOENT;
-       }
 
        proc = kzalloc(sizeof(struct dlm_user_proc), GFP_KERNEL);
        if (!proc) {
                dlm_put_lockspace(ls);
-               unlock_kernel();
                return -ENOMEM;
        }
 
@@ -659,7 +654,6 @@ static int device_open(struct inode *inode, struct file *file)
        spin_lock_init(&proc->locks_spin);
        init_waitqueue_head(&proc->wait);
        file->private_data = proc;
-       unlock_kernel();
 
        return 0;
 }
@@ -914,7 +908,6 @@ int dlm_user_daemon_available(void)
 
 static int ctl_device_open(struct inode *inode, struct file *file)
 {
-       cycle_kernel_lock();
        file->private_data = NULL;
        return 0;
 }