Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
This commit is contained in:
@@ -712,7 +712,7 @@ unsigned int datagram_poll(struct file *file, struct socket *sock,
|
||||
struct sock *sk = sock->sk;
|
||||
unsigned int mask;
|
||||
|
||||
poll_wait(file, sk->sk_sleep, wait);
|
||||
sock_poll_wait(file, sk->sk_sleep, wait);
|
||||
mask = 0;
|
||||
|
||||
/* exceptional events? */
|
||||
|
@@ -744,7 +744,7 @@ int netpoll_setup(struct netpoll *np)
|
||||
np->name);
|
||||
break;
|
||||
}
|
||||
cond_resched();
|
||||
msleep(1);
|
||||
}
|
||||
|
||||
/* If carrier appears to come up instantly, we don't
|
||||
|
@@ -1715,7 +1715,7 @@ EXPORT_SYMBOL(sock_no_sendpage);
|
||||
static void sock_def_wakeup(struct sock *sk)
|
||||
{
|
||||
read_lock(&sk->sk_callback_lock);
|
||||
if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
|
||||
if (sk_has_sleeper(sk))
|
||||
wake_up_interruptible_all(sk->sk_sleep);
|
||||
read_unlock(&sk->sk_callback_lock);
|
||||
}
|
||||
@@ -1723,7 +1723,7 @@ static void sock_def_wakeup(struct sock *sk)
|
||||
static void sock_def_error_report(struct sock *sk)
|
||||
{
|
||||
read_lock(&sk->sk_callback_lock);
|
||||
if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
|
||||
if (sk_has_sleeper(sk))
|
||||
wake_up_interruptible_poll(sk->sk_sleep, POLLERR);
|
||||
sk_wake_async(sk, SOCK_WAKE_IO, POLL_ERR);
|
||||
read_unlock(&sk->sk_callback_lock);
|
||||
@@ -1732,7 +1732,7 @@ static void sock_def_error_report(struct sock *sk)
|
||||
static void sock_def_readable(struct sock *sk, int len)
|
||||
{
|
||||
read_lock(&sk->sk_callback_lock);
|
||||
if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
|
||||
if (sk_has_sleeper(sk))
|
||||
wake_up_interruptible_sync_poll(sk->sk_sleep, POLLIN |
|
||||
POLLRDNORM | POLLRDBAND);
|
||||
sk_wake_async(sk, SOCK_WAKE_WAITD, POLL_IN);
|
||||
@@ -1747,7 +1747,7 @@ static void sock_def_write_space(struct sock *sk)
|
||||
* progress. --DaveM
|
||||
*/
|
||||
if ((atomic_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf) {
|
||||
if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
|
||||
if (sk_has_sleeper(sk))
|
||||
wake_up_interruptible_sync_poll(sk->sk_sleep, POLLOUT |
|
||||
POLLWRNORM | POLLWRBAND);
|
||||
|
||||
|
Reference in New Issue
Block a user