diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-05-18 21:40:00 (GMT) |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 20:05:53 (GMT) |
commit | 9514dff918b947ae43b66517dc90d0e05548bd6a (patch) | |
tree | 3aa6a3ece62d2304f472e9d4aba5ce339f904492 /fs | |
parent | a30427d92d0bc152b833088e4a305bbeb1a0c162 (diff) | |
download | linux-9514dff918b947ae43b66517dc90d0e05548bd6a.tar.xz |
Remove the lock_kernel() call from chrdev_open()
All in-kernel char device open() functions now either have their own
lock_kernel() calls or clearly do not need one.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/char_dev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c index a54d693..3cb7cda 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c @@ -394,11 +394,8 @@ static int chrdev_open(struct inode *inode, struct file *filp) cdev_put(p); return -ENXIO; } - if (filp->f_op->open) { - lock_kernel(); + if (filp->f_op->open) ret = filp->f_op->open(inode,filp); - unlock_kernel(); - } if (ret) cdev_put(p); return ret; |