Skip to content

Commit

Permalink
infiniband-ucma: BKL pushdown
Browse files Browse the repository at this point in the history
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent a9c4e8f commit 6b0ee36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/infiniband/core/ucma.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/miscdevice.h>
#include <linux/smp_lock.h>

#include <rdma/rdma_user_cm.h>
#include <rdma/ib_marshall.h>
Expand Down Expand Up @@ -1156,13 +1157,15 @@ static int ucma_open(struct inode *inode, struct file *filp)
if (!file)
return -ENOMEM;

lock_kernel();
INIT_LIST_HEAD(&file->event_list);
INIT_LIST_HEAD(&file->ctx_list);
init_waitqueue_head(&file->poll_wait);
mutex_init(&file->mut);

filp->private_data = file;
file->filp = filp;
unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 6b0ee36

Please sign in to comment.