From: Arjan van de Ven <arjan@infradead.org>
To: Jonathan Corbet <corbet@lwn.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andi Kleen <andi@firstfloor.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Al Viro <viro@ZenIV.linux.org.uk>
Subject: Re: [PATCH, RFC] fasync() BKL pushdown
Date: Fri, 20 Jun 2008 13:58:40 -0700 [thread overview]
Message-ID: <20080620135840.562dd4a5@infradead.org> (raw)
In-Reply-To: <20080620112914.783be428@bike.lwn.net>
On Fri, 20 Jun 2008 11:29:14 -0600
Jonathan Corbet <corbet@lwn.net> wrote:
>
> The majority of fasync() functions just call fasync_helper() with a
> pointer to an fasync_struct reachable from the file structure. Given
> that (1) the struct file will not go away while fasync() is running,
> and (2) the VFS-level fasync() stuff is protected with the Big Fasync
> Lock, I contend that these simple implementations have no need for
> the BKL. Once those are filtered out, there's really only a
> half-dozen places which need to be fixed.
> Jonathan Corbet (7):
> mpt: fasync BKL pushdown
> i2o: fasync BKL pushdown
> tun: fasync BKL pushdown
> tty_io: fasync BKL pushdown
> Bluetooth VHCI: fasync BKL pushdown
> ecryptfs: fasync BKL pushdown
> Call fasync() functions without the BKL
>
> And the actual patch is appended. If nobody objects, I'll pull these
> into the bkl-removal tree shortly.
>
looks good to me
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)
--
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
next prev parent reply other threads:[~2008-06-20 20:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 17:29 Jonathan Corbet
2008-06-20 17:55 ` Andi Kleen
2008-06-20 19:09 ` Jonathan Corbet
2008-06-20 19:12 ` Andi Kleen
2008-06-25 22:30 ` [PATCH, RFC] fasync() BKL pushdown (take 2) Jonathan Corbet
2008-06-27 8:48 ` Andi Kleen
2008-06-20 20:58 ` Arjan van de Ven [this message]
2008-06-20 21:05 ` [PATCH, RFC] fasync() BKL pushdown Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080620135840.562dd4a5@infradead.org \
--to=arjan@infradead.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andi@firstfloor.org \
--cc=corbet@lwn.net \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome