lkml.org 
[lkml]   [2010]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT, RFC] Killing the Big Kernel Lock
On Mon, Mar 29, 2010 at 01:18:48AM +0200, Frederic Weisbecker wrote:
> On Wed, Mar 24, 2010 at 10:40:54PM +0100, Arnd Bergmann wrote:
> > Arnd Bergmann (44):
> > [...]
> > procfs: kill BKL in llseek
>
>
> About this one, there is a "sensible" part:
>
>
> @@ -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().
>


There is also the ioctl part that takes the bkl in procfs.
I'll just check nothing weird happens there wrt file pos.
We probably first need to pushdown the bkl in the procfs
ioctl handlers.



\
 
 \ /
  Last update: 2010-03-29 01:41    [W:0.293 / U:1.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site