login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
29
Re: [GIT, RFC] Killing the Big Kernel Lock
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Arnd Bergmann
Subject:
Re: [GIT, RFC] Killing the Big Kernel Lock
Date: Monday, March 29, 2010 - 2:18 pm
On Monday 29 March 2010 19:59:39 Frederic Weisbecker wrote:
quoted text
> On Mon, Mar 29, 2010 at 12:04:24PM +0100, Arnd Bergmann wrote: > > On Monday 29 March 2010, Frederic Weisbecker wrote: > > > On Mon, Mar 29, 2010 at 01:18:48AM +0200, Frederic Weisbecker wrote: > > > > @@ -1943,7 +1949,7 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf, > > > > } > > > > > > > > static const struct file_operations proc_fdinfo_file_operations = { > > > > - .open = nonseekable_open, > > > > + .llseek = generic_file_llseek, > > > > .read = proc_fdinfo_read, > > > > }; > > > > > > > > > > > > Replacing default_llseek() by generic_file_llseek() as you > > > > did for most of the other parts is fine. > > > > > > > > But the above changes the semantics as it makes it seekable. > > > > Why not just keeping it as is? It just ends up in no_llseek(). > > > > The default is default_llseek, which uses the BKL and cannot be > > used if procfs is builtin and the BKL is a module. > > Yeah, but you removed the nonseekable_open and made generic_file_llseek > in llseek on this one. > This makes it seekable while it wasn't, changing its ABI. > It wasn't taking the bkl before that as it was calling > no_llseek().
Ah, I see what you mean. That change was certainly not intentional an should be reverted. Thanks for pointing this out.
quoted text
> > The BKL in procfs is only for proc files that have registered > > their own .ioctl instead of .unlocked_ioctl method. Converting > > every file_operations instance to provide an unlocked_ioctl > > (as one of the other patches does) makes sure that this path > > is never taken. BTW, there are less than a handful of procfs files > > that provide an ioctl operation, and those probably should never > > have been merged. > > > There are three of them. I'm going to make them .unlocked_ioctl > and push the bkl inside, and warn on further uses of .ioctl, > without applying the bkl there anymore. > > That plus your bkl removal in proc seek, should totally remove the > bkl from procfs.
Ok Arnd --
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:
Re: [GIT, RFC] Killing the Big Kernel Lock
, Andrew Morton
, (Wed Mar 24, 2:07 pm)
[GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Wed Mar 24, 2:40 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Roland Dreier
, (Wed Mar 24, 2:53 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Wed Mar 24, 2:59 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Alan Cox
, (Wed Mar 24, 3:10 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Ingo Molnar
, (Wed Mar 24, 3:23 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Wed Mar 24, 3:25 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Thu Mar 25, 3:26 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Jiri Kosina
, (Thu Mar 25, 5:55 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Thu Mar 25, 6:06 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Thu Mar 25, 6:38 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Dan Carpenter
, (Thu Mar 25, 6:40 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Thu Mar 25, 7:14 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Stefan Richter
, (Fri Mar 26, 4:47 pm)
[PATCH] firewire: char device files are not seekable (BKL ...
, Stefan Richter
, (Sat Mar 27, 2:16 am)
[PATCH] ieee1394: char device files are not seekable (BKL ...
, Stefan Richter
, (Sat Mar 27, 2:20 am)
[PATCH RFC] DVB: add dvb_generic_nonseekable_open, dvb_gen ...
, Stefan Richter
, (Sat Mar 27, 3:40 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Sat Mar 27, 7:37 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Stefan Richter
, (Sun Mar 28, 5:27 am)
[PATCH RFC v2] DVB: add dvb_generic_nonseekable_open, dvb_ ...
, Stefan Richter
, (Sun Mar 28, 7:47 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 1:04 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Sun Mar 28, 1:05 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 1:11 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 1:15 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 1:33 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Sun Mar 28, 2:34 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Andi Kleen
, (Sun Mar 28, 2:58 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 4:18 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 4:24 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Sun Mar 28, 4:38 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock II
, Andi Kleen
, (Sun Mar 28, 6:07 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Mon Mar 29, 4:04 am)
Re: [GIT, RFC] Killing the Big Kernel Lock II
, Arnd Bergmann
, (Mon Mar 29, 4:48 am)
Re: [GIT, RFC] Killing the Big Kernel Lock II
, Andi Kleen
, (Mon Mar 29, 5:30 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, John Kacur
, (Mon Mar 29, 5:45 am)
Re: [GIT, RFC] Killing the Big Kernel Lock II
, Arnd Bergmann
, (Mon Mar 29, 7:43 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Mon Mar 29, 10:59 am)
Re: [GIT, RFC] Killing the Big Kernel Lock II
, Andi Kleen
, (Mon Mar 29, 1:11 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Mon Mar 29, 2:18 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Roland Dreier
, (Tue Mar 30, 10:22 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Roland Dreier
, (Wed Mar 31, 3:11 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Wed Mar 31, 3:20 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Thu Apr 1, 1:50 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Jan Blunck
, (Thu Apr 8, 1:45 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Arnd Bergmann
, (Thu Apr 8, 2:27 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Frederic Weisbecker
, (Thu Apr 8, 2:30 pm)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Jan Blunck
, (Fri Apr 9, 4:02 am)
Re: [GIT, RFC] Killing the Big Kernel Lock
, Stefan Richter
, (Sat Apr 10, 8:13 am)
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