Re: [patch 2/4] Timerfd v3 - new timerfd API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 27 Nov 2007 12:47:46 -0800 (PST)
Davide Libenzi <[email protected]> wrote:

> On Tue, 27 Nov 2007, Andrew Morton wrote:
> 
> > On Sun, 25 Nov 2007 14:14:19 -0800 Davide Libenzi <[email protected]> wrote:
> > 
> > > +static struct file *timerfd_fget(int fd)
> > > +{
> > > +	struct file *file;
> > > +
> > > +	file = fget(fd);
> > > +	if (!file)
> > > +		return ERR_PTR(-EBADF);
> > > +	if (file->f_op != &timerfd_fops) {
> > > +		fput(file);
> > > +		return ERR_PTR(-EINVAL);
> > > +	}
> > > +
> > > +	return file;
> > > +}
> > 
> > I suppose we could use fget_light() in here sometime.  It is significantly
> > quicker in microbenchmarks.  Or it was - nobody has checked that in a few
> > years afaik.
> 
> Should I now?

No great rush.  It'd be fun to see if it actually makes any measurable
difference on modern hardware (hint ;)).

> Half of the internet traffic of the last three month was 
> generated by me posting those timerfd patches :)

Which means my inbox gets 3000% of the internet.  Thought so.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux