[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1010102148430.4151@davide-laptop>
Date: Sun, 10 Oct 2010 21:49:58 -0700 (PDT)
From: Davide Libenzi <davidel@...ilserver.org>
To: Robin Holt <holt@....com>
cc: "Eric W. Biederman" <ebiederm@...ssion.com>,
Pekka Enberg <penberg@...helsinki.fi>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [Patch] Convert max_user_watches to long.
On Sat, 9 Oct 2010, Robin Holt wrote:
> @@ -900,11 +902,12 @@ static int ep_insert(struct eventpoll *e
> {
> int error, revents, pwake = 0;
> unsigned long flags;
> + long user_watches;
> struct epitem *epi;
> struct ep_pqueue epq;
>
> - if (unlikely(atomic_read(&ep->user->epoll_watches) >=
> - max_user_watches))
> + user_watches = atomic_long_read(&ep->user->epoll_watches);
> + if (user_watches >= max_user_watches)
> return -ENOSPC;
Is there a particular reason for adding an extra, otherwise unused,
user_watches variable?
- Davide
--
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