tty: push the BKL down into the handlers a bit

Start trying to untangle the remaining BKL mess

Updated to fix missing unlock_kernel noted by Dan Carpenter

Signed-off-by: Alan "I must be out of my tree" Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alan Cox
2009-11-30 13:18:29 +00:00
committed by Greg Kroah-Hartman
parent e8c62103fd
commit eeb89d918c
4 changed files with 95 additions and 63 deletions

View File

@@ -659,7 +659,7 @@ static int __ptmx_open(struct inode *inode, struct file *filp)
if (!retval)
return 0;
out1:
tty_release_dev(filp);
tty_release(inode, filp);
return retval;
out:
devpts_kill_index(inode, index);