login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
20
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Mike Frysinger
Subject:
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
Date: Tuesday, May 20, 2008 - 4:01 pm
On Mon, May 19, 2008 at 7:26 PM, Arnd Bergmann wrote:
quoted text
> The Big Kernel Lock has been pushed down from chardev_open > to misc_open, this change moves it to the individual misc > driver open functions. > > As before, the change was purely mechanical, most drivers > should actually not need the BKL. In particular, we still > hold the misc_mtx() while calling the open() function > The patch should probably be split into one changeset > per driver. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > --- > Index: linux-2.6/arch/blackfin/mach-bf561/coreb.c > =================================================================== > --- linux-2.6.orig/arch/blackfin/mach-bf561/coreb.c > +++ linux-2.6/arch/blackfin/mach-bf561/coreb.c > @@ -32,6 +32,7 @@ > #include <linux/device.h> > #include <linux/ioport.h> > #include <linux/module.h> > +#include <linux/smp_lock.h> > #include <linux/uaccess.h> > #include <linux/fs.h> > #include <asm/dma.h> > @@ -196,6 +197,7 @@ static loff_t coreb_lseek(struct file *f > > static int coreb_open(struct inode *inode, struct file *file) > { > + lock_kernel(); > spin_lock_irq(&coreb_lock); > > if (coreb_status & COREB_IS_OPEN) > @@ -204,10 +206,12 @@ static int coreb_open(struct inode *inod > coreb_status |= COREB_IS_OPEN; > > spin_unlock_irq(&coreb_lock); > + unlock_kernel(); > return 0; > > out_busy: > spin_unlock_irq(&coreb_lock); > + unlock_kernel(); > return -EBUSY; > }
please drop the coreb.c changes from your patch -mike --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[announce] "kill the Big Kernel Lock (BKL)" tree
, Ingo Molnar
, (Wed May 14, 10:49 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Wed May 14, 11:30 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Wed May 14, 11:41 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Ingo Molnar
, (Wed May 14, 12:41 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Frederik Deweerdt
, (Wed May 14, 1:05 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Wed May 14, 2:00 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Wed May 14, 2:13 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, H. Peter Anvin
, (Wed May 14, 2:16 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Wed May 14, 2:17 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Wed May 14, 2:19 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Wed May 14, 2:39 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Jonathan Corbet
, (Wed May 14, 2:45 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Wed May 14, 2:45 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Wed May 14, 2:46 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Wed May 14, 2:56 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Wed May 14, 3:03 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Jonathan Corbet
, (Wed May 14, 3:07 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Wed May 14, 3:11 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Wed May 14, 3:11 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Wed May 14, 3:14 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Wed May 14, 3:15 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Wed May 14, 3:16 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Wed May 14, 3:21 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Ingo Molnar
, (Thu May 15, 1:02 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Jan Engelhardt
, (Thu May 15, 1:44 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Thu May 15, 6:30 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Thu May 15, 6:34 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Thu May 15, 7:27 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Diego Calleja
, (Thu May 15, 7:54 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, John Stoffel
, (Thu May 15, 8:05 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Thu May 15, 8:10 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, John Stoffel
, (Thu May 15, 8:18 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Thu May 15, 8:36 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Thu May 15, 8:45 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Linus Torvalds
, (Thu May 15, 10:41 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Arjan van de Ven
, (Thu May 15, 1:27 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Peter Zijlstra
, (Thu May 15, 1:45 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Arjan van de Ven
, (Thu May 15, 2:22 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Andi Kleen
, (Fri May 16, 3:21 am)
[PATCH, RFC] char dev BKL pushdown
, Jonathan Corbet
, (Fri May 16, 8:44 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Christoph Hellwig
, (Fri May 16, 8:49 am)
[PATCH] kill empty chardev open/release methods
, Christoph Hellwig
, (Fri May 16, 9:03 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Alan Cox
, (Fri May 16, 9:22 am)
Re: [PATCH] kill empty chardev open/release methods
, Alan Cox
, (Fri May 16, 9:24 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Linus Torvalds
, (Fri May 16, 9:30 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Jonathan Corbet
, (Fri May 16, 9:43 am)
Re: [PATCH] kill empty chardev open/release methods
, Alan Cox
, (Fri May 16, 1:55 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Kevin Winchester
, (Fri May 16, 5:14 pm)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Kevin Winchester
, (Fri May 16, 5:37 pm)
Re: [PATCH, RFC] char dev BKL pushdown
, Arnd Bergmann
, (Sat May 17, 2:15 pm)
Re: [PATCH, RFC] char dev BKL pushdown
, Linus Torvalds
, (Sat May 17, 2:58 pm)
Re: [PATCH] kill empty chardev open/release methods
, Jonathan Corbet
, (Sun May 18, 12:46 pm)
Re: [PATCH] kill empty chardev open/release methods
, Alan Cox
, (Sun May 18, 12:58 pm)
Re: [PATCH, RFC] char dev BKL pushdown
, Jonathan Corbet
, (Sun May 18, 1:07 pm)
Re: [PATCH, RFC] char dev BKL pushdown
, Jonathan Corbet
, (Sun May 18, 1:26 pm)
Re: [PATCH, RFC] char dev BKL pushdown
, Arnd Bergmann
, (Mon May 19, 4:07 pm)
[PATCH 1/3, RFC] misc char dev BKL pushdown
, Arnd Bergmann
, (Mon May 19, 4:26 pm)
[PATCH 3/3, RFC] remove BKL from misc_open()
, Arnd Bergmann
, (Mon May 19, 4:34 pm)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Mike Frysinger
, (Mon May 19, 5:07 pm)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Jonathan Corbet
, (Mon May 19, 5:21 pm)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Mike Frysinger
, (Mon May 19, 5:46 pm)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Alan Cox
, (Tue May 20, 1:46 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Jonathan Corbet
, (Tue May 20, 8:13 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Arnd Bergmann
, (Tue May 20, 10:21 am)
Re: [PATCH, RFC] char dev BKL pushdown
, Alan Cox
, (Tue May 20, 11:51 am)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Mike Frysinger
, (Tue May 20, 4:01 pm)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Jonathan Corbet
, (Tue May 20, 4:25 pm)
Re: [PATCH 1/3, RFC] misc char dev BKL pushdown
, Mike Frysinger
, (Wed May 21, 9:22 am)
Re: [announce] "kill the Big Kernel Lock (BKL)" tree
, Alan Cox
, (Thu May 22, 1:20 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate