[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0906261111230.16400@makko.or.mcafeemobile.com>
Date: Fri, 26 Jun 2009 11:12:15 -0700 (PDT)
From: Davide Libenzi <davidel@...ilserver.org>
To: Oleg Nesterov <oleg@...hat.com>
cc: Eric Dumazet <eric.dumazet@...il.com>,
Jiri Olsa <jolsa@...hat.com>, netdev@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
fbl@...hat.com, nhorman@...hat.com, davem@...hat.com,
Tejun Heo <htejun@...il.com>
Subject: Re: [PATCH] net: fix race in the receive/select
On Fri, 26 Jun 2009, Oleg Nesterov wrote:
> Perhaps we can add
>
> void sock_poll_wait(struct file *file, struct sock *sk, poll_table *pt)
> {
> if (pt) {
> poll_wait(file, sk->sk_sleep, pt);
> /*
> * fat comment
> */
> smp_mb(); // or smp_mb__after_unlock();
> }
> }
That'd be fine IMHO. Are DaveM and Eric OK?
- 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