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: Monday, May 19, 2008 - 5:07 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. > > --- 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; > }
this open func already has a spinlock protecting it. doesnt that mean we dont need the bkl in it ? -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
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate