From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:02 +0000 (+0200) Subject: infiniband-ucma: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~57 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b0ee363b294c3724224909dcb0b80f7dac3dfd6;p=linux-2.6 infiniband-ucma: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index ca4cf3a511..195f97302f 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -1156,6 +1157,7 @@ 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); @@ -1163,6 +1165,7 @@ static int ucma_open(struct inode *inode, struct file *filp) filp->private_data = file; file->filp = filp; + unlock_kernel(); return 0; }