Skip to content

Commit f9f2ed4

Browse files
committed
dlm: remove bkl
BLK from recent pushdown is not needed. Signed-off-by: David Teigland <teigland@redhat.com>
1 parent 44be6fd commit f9f2ed4

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎fs/dlm/user.c‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <linux/poll.h>
1616
#include <linux/signal.h>
1717
#include <linux/spinlock.h>
18-
#include <linux/smp_lock.h>
1918
#include <linux/dlm.h>
2019
#include <linux/dlm_device.h>
2120

@@ -637,17 +636,13 @@ static int device_open(struct inode *inode, struct file *file)
637636
struct dlm_user_proc *proc;
638637
struct dlm_ls *ls;
639638

640-
lock_kernel();
641639
ls = dlm_find_lockspace_device(iminor(inode));
642-
if (!ls) {
643-
unlock_kernel();
640+
if (!ls)
644641
return -ENOENT;
645-
}
646642

647643
proc = kzalloc(sizeof(struct dlm_user_proc), GFP_KERNEL);
648644
if (!proc) {
649645
dlm_put_lockspace(ls);
650-
unlock_kernel();
651646
return -ENOMEM;
652647
}
653648

@@ -659,7 +654,6 @@ static int device_open(struct inode *inode, struct file *file)
659654
spin_lock_init(&proc->locks_spin);
660655
init_waitqueue_head(&proc->wait);
661656
file->private_data = proc;
662-
unlock_kernel();
663657

664658
return 0;
665659
}
@@ -914,7 +908,6 @@ int dlm_user_daemon_available(void)
914908

915909
static int ctl_device_open(struct inode *inode, struct file *file)
916910
{
917-
cycle_kernel_lock();
918911
file->private_data = NULL;
919912
return 0;
920913
}

0 commit comments

Comments
 (0)