Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
514bcc66
Commit
514bcc66
authored
May 20, 2008
by
Arnd Bergmann
Committed by
Jonathan Corbet
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dlm-user: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
009228df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
fs/dlm/user.c
fs/dlm/user.c
+8
-1
No files found.
fs/dlm/user.c
View file @
514bcc66
...
...
@@ -15,6 +15,7 @@
#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>
...
...
@@ -618,13 +619,17 @@ 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
)
if
(
!
ls
)
{
unlock_kernel
();
return
-
ENOENT
;
}
proc
=
kzalloc
(
sizeof
(
struct
dlm_user_proc
),
GFP_KERNEL
);
if
(
!
proc
)
{
dlm_put_lockspace
(
ls
);
unlock_kernel
();
return
-
ENOMEM
;
}
...
...
@@ -636,6 +641,7 @@ 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
;
}
...
...
@@ -870,6 +876,7 @@ static unsigned int device_poll(struct file *file, poll_table *wait)
static
int
ctl_device_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
cycle_kernel_lock
();
file
->
private_data
=
NULL
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment