lkml.org 
[lkml]   [2010]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT, RFC] Killing the Big Kernel Lock
On Wed, Mar 31, 2010 at 03:11:03PM -0700, Roland Dreier wrote:
> Hi Arnd,
>
> Looking at your tree, I see you have commit 753dd249 ("perf_event: use
> nonseekable_open") that does:
>
> > --- a/kernel/perf_event.c
> > +++ b/kernel/perf_event.c
> > @@ -2515,6 +2515,8 @@ static int perf_fasync(int fd, struct file *filp, int on)
> > }
> >
> > static const struct file_operations perf_fops = {
> > + .open = nonseekable_open,
> > + .llseek = no_llseek,
> > .release = perf_release,
> > .read = perf_read,
> > .poll = perf_poll,
>
> But if I understand this correctly, the assignment to .open is at best
> useless -- these file_operations are only used via anon_inode_getfd()
> and so there is no possible path that can call the .open method. Or am
> I missing something?
>
> (The same applies to the kvm_main.c changes too)


Good point, I'll update that.

Thanks.



\
 
 \ /
  Last update: 2010-04-01 00:23    [W:0.206 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site