[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1174031223.13341.251.camel@localhost.localdomain>
Date: Fri, 16 Mar 2007 08:47:03 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Davide Libenzi <davidel@...ilserver.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [patch 6/13] signalfd/timerfd/asyncfd v5 - timerfd core ...
On Thu, 2007-03-15 at 16:02 -0700, Davide Libenzi wrote:
> > > + /*
> > > + * When we call this, the initialization must be complete, since
> > > + * aino_getfd() will install the fd.
> > > + */
> > > + error = aino_getfd(&ufd, &inode, &file, "[timerfd]",
> > > + &timerfd_fops, ctx);
> > > + if (error)
> > > + goto err_ctxfree;
> >
> > Again: Please turn this around. No need to start the timer before we
> > know, that everything works.
>
> The timerfd_setup() is not locked, so we need to make sure everything is
> setup, before advertising the fd (and aino_getfd does that).
Right. Did not think about the bad boys peeking at file descriptors :)
tglx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists