lkml.org 
[lkml]   [2008]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH, RFC] fasync() BKL pushdown
On Fri, 20 Jun 2008 13:58:40 -0700
Arjan van de Ven <arjan@infradead.org> wrote:

> only question is if this one is really needed:
> + lock_kernel();
> tty = (struct tty_struct *)filp->private_data;
> if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode,
> "tty_fasync"))
> - return 0;
> + goto out;
>
> retval = fasync_helper(fd, filp, on, &tty->fasync);
> if (retval <= 0)
>
> (given that it just calls the helper.. mostly and that Alan has been
> busy removing the BKL from the tty layer)

There's enough other stuff going on there, including manipulations of
the tty_struct, waitqueue_active() checks, etc., that I figured I should
really leave the BKL in there and let Alan figure it out. I've learned
that it's best to tread with great care in that part of the kernel...

jon


Jonathan Corbet / LWN.net / corbet@lwn.net


\
 
 \ /
  Last update: 2008-06-20 23:07    [W:0.128 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site